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))) {
#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))