Whamcloud - gitweb
LU-16609 target: top_trans_create cannot alloc memory
[fs/lustre-release.git] / lustre / target / update_trans.c
index 16acc80..77f6c4a 100644 (file)
@@ -592,7 +592,7 @@ top_trans_create(const struct lu_env *env, struct dt_device *master_dev)
        struct top_thandle      *top_th;
        struct thandle          *child_th;
 
-       OBD_ALLOC_GFP(top_th, sizeof(*top_th), __GFP_IO);
+       OBD_ALLOC_GFP(top_th, sizeof(*top_th), GFP_NOFS);
        if (top_th == NULL)
                return ERR_PTR(-ENOMEM);