diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 08:41:41 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 13:07:53 -0400 |
| commit | 816724e65c72a90a44fbad0ef0b59b186c85fa90 (patch) | |
| tree | 421fa29aedff988e392f92780637553e275d37a0 /fs/xfs/linux-2.6/kmem.h | |
| parent | 70ac4385a13f78bc478f26d317511893741b05bd (diff) | |
| parent | d384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
fs/nfs/inode.c
fs/super.c
Fix conflicts between patch 'NFS: Split fs/nfs/inode.c' and patch
'VFS: Permit filesystem to override root dentry on mount'
Diffstat (limited to 'fs/xfs/linux-2.6/kmem.h')
| -rw-r--r-- | fs/xfs/linux-2.6/kmem.h | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h index 2cfd33d4d8aa..939bd84bc7ee 100644 --- a/fs/xfs/linux-2.6/kmem.h +++ b/fs/xfs/linux-2.6/kmem.h | |||
| @@ -23,42 +23,6 @@ | |||
| 23 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
| 24 | 24 | ||
| 25 | /* | 25 | /* |
| 26 | * Process flags handling | ||
| 27 | */ | ||
| 28 | |||
| 29 | #define PFLAGS_TEST_NOIO() (current->flags & PF_NOIO) | ||
| 30 | #define PFLAGS_TEST_FSTRANS() (current->flags & PF_FSTRANS) | ||
| 31 | |||
| 32 | #define PFLAGS_SET_NOIO() do { \ | ||
| 33 | current->flags |= PF_NOIO; \ | ||
| 34 | } while (0) | ||
| 35 | |||
| 36 | #define PFLAGS_CLEAR_NOIO() do { \ | ||
| 37 | current->flags &= ~PF_NOIO; \ | ||
| 38 | } while (0) | ||
| 39 | |||
| 40 | /* these could be nested, so we save state */ | ||
| 41 | #define PFLAGS_SET_FSTRANS(STATEP) do { \ | ||
| 42 | *(STATEP) = current->flags; \ | ||
| 43 | current->flags |= PF_FSTRANS; \ | ||
| 44 | } while (0) | ||
| 45 | |||
| 46 | #define PFLAGS_CLEAR_FSTRANS(STATEP) do { \ | ||
| 47 | *(STATEP) = current->flags; \ | ||
| 48 | current->flags &= ~PF_FSTRANS; \ | ||
| 49 | } while (0) | ||
| 50 | |||
| 51 | /* Restore the PF_FSTRANS state to what was saved in STATEP */ | ||
| 52 | #define PFLAGS_RESTORE_FSTRANS(STATEP) do { \ | ||
| 53 | current->flags = ((current->flags & ~PF_FSTRANS) | \ | ||
| 54 | (*(STATEP) & PF_FSTRANS)); \ | ||
| 55 | } while (0) | ||
| 56 | |||
| 57 | #define PFLAGS_DUP(OSTATEP, NSTATEP) do { \ | ||
| 58 | *(NSTATEP) = *(OSTATEP); \ | ||
| 59 | } while (0) | ||
| 60 | |||
| 61 | /* | ||
| 62 | * General memory allocation interfaces | 26 | * General memory allocation interfaces |
| 63 | */ | 27 | */ |
| 64 | 28 | ||
| @@ -83,7 +47,7 @@ kmem_flags_convert(unsigned int __nocast flags) | |||
| 83 | lflags = GFP_ATOMIC | __GFP_NOWARN; | 47 | lflags = GFP_ATOMIC | __GFP_NOWARN; |
| 84 | } else { | 48 | } else { |
| 85 | lflags = GFP_KERNEL | __GFP_NOWARN; | 49 | lflags = GFP_KERNEL | __GFP_NOWARN; |
| 86 | if (PFLAGS_TEST_FSTRANS() || (flags & KM_NOFS)) | 50 | if ((current->flags & PF_FSTRANS) || (flags & KM_NOFS)) |
| 87 | lflags &= ~__GFP_FS; | 51 | lflags &= ~__GFP_FS; |
| 88 | } | 52 | } |
| 89 | return lflags; | 53 | return lflags; |
