X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fxfs%2Flinux-2.6%2Fkmem.h;h=466b2d504395cf1b64011a0829599e6e1f908532;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=ffe383e14e36a0f506878d61d0ee3aa4f00b1e68;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h index ffe383e14..466b2d504 100644 --- a/fs/xfs/linux-2.6/kmem.h +++ b/fs/xfs/linux-2.6/kmem.h @@ -83,7 +83,7 @@ typedef unsigned long xfs_pflags_t; static __inline unsigned int kmem_flags_convert(int flags) { - int lflags; + int lflags = __GFP_NOWARN; /* we'll report problems, if need be */ #ifdef DEBUG if (unlikely(flags & ~(KM_SLEEP|KM_NOSLEEP|KM_NOFS|KM_MAYFAIL))) { @@ -94,9 +94,9 @@ static __inline unsigned int kmem_flags_convert(int flags) #endif if (flags & KM_NOSLEEP) { - lflags = GFP_ATOMIC; + lflags |= GFP_ATOMIC; } else { - lflags = GFP_KERNEL; + lflags |= GFP_KERNEL; /* avoid recusive callbacks to filesystem during transactions */ if (PFLAGS_TEST_FSTRANS() || (flags & KM_NOFS))