]> git.hungrycats.org Git - linux/commitdiff
[XFS] Revert botched merge where KM_NOFS check was unintentionally dropped.
authorNathan Scott <nathans@sgi.com>
Sat, 31 Jan 2004 01:21:20 +0000 (12:21 +1100)
committerNathan Scott <nathans@sgi.com>
Sat, 31 Jan 2004 01:21:20 +0000 (12:21 +1100)
SGI Modid: xfs-linux:xfs-kern:165631a

fs/xfs/linux/kmem.h

index a8fb09f2f604b389c724acfb4cf67fbbb84579fa..a75bdd210884cc27f5116e3928aae4e46b5a3ff6 100644 (file)
@@ -90,7 +90,7 @@ kmem_flags_convert(int flags)
        lflags = (flags & KM_NOSLEEP) ? GFP_ATOMIC : (GFP_KERNEL|__GFP_NOFAIL);
 
        /* avoid recusive callbacks to filesystem during transactions */
-       if (PFLAGS_TEST_FSTRANS())
+       if (PFLAGS_TEST_FSTRANS() || (flags & KM_NOFS))
                lflags &= ~__GFP_FS;
 
        return lflags;