diff options
author | Nathan Scott <nathans@sgi.com> | 2006-09-28 11:03:05 +1000 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2006-09-28 11:03:05 +1000 |
commit | efb8ad7e9431a430a75d44288614cf6047ff4baa (patch) | |
tree | cbebf7d8bf1b5f25235756c0aa7ff610d4cb4055 /fs/xfs/linux-2.6/kmem.h | |
parent | 3f89243c5b987dd55f8eec6fd54be05887d69bc6 (diff) | |
download | blackbird-op-linux-efb8ad7e9431a430a75d44288614cf6047ff4baa.tar.gz blackbird-op-linux-efb8ad7e9431a430a75d44288614cf6047ff4baa.zip |
[XFS] Add a debug flag for allocations which are known to be larger than
one page.
SGI-PV: 955302
SGI-Modid: xfs-linux-melb:xfs-kern:26800a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/kmem.h')
-rw-r--r-- | fs/xfs/linux-2.6/kmem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h index 0e8293c5a32f..6d24274fb3cb 100644 --- a/fs/xfs/linux-2.6/kmem.h +++ b/fs/xfs/linux-2.6/kmem.h @@ -30,6 +30,7 @@ #define KM_NOSLEEP 0x0002u #define KM_NOFS 0x0004u #define KM_MAYFAIL 0x0008u +#define KM_LARGE 0x0010u /* * We use a special process flag to avoid recursive callbacks into @@ -41,7 +42,7 @@ kmem_flags_convert(unsigned int __nocast flags) { gfp_t lflags; - BUG_ON(flags & ~(KM_SLEEP|KM_NOSLEEP|KM_NOFS|KM_MAYFAIL)); + BUG_ON(flags & ~(KM_SLEEP|KM_NOSLEEP|KM_NOFS|KM_MAYFAIL|KM_LARGE)); if (flags & KM_NOSLEEP) { lflags = GFP_ATOMIC | __GFP_NOWARN; |