Whamcloud - gitweb
LU-5988 obdclass: drop malloc fault and page accounting
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_handler.c
index 9ce5774..738dceb 100644 (file)
@@ -5706,7 +5706,7 @@ static int osd_mount(const struct lu_env *env,
        if (opts != NULL && strstr(opts, "force_over_128tb") != NULL)
                force_over_128tb = 1;
 
-       OBD_PAGE_ALLOC(__page, GFP_IOFS);
+       __page = alloc_page(GFP_IOFS);
        if (__page == NULL)
                GOTO(out, rc = -ENOMEM);
        page = (unsigned long)page_address(__page);
@@ -5821,7 +5821,7 @@ out_mnt:
 
 out:
        if (__page)
-               OBD_PAGE_FREE(__page);
+               __free_page(__page);
 
        return rc;
 }