summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorYan Zheng <zheng.yan@oracle.com>2009-02-12 10:06:04 -0500
committerChris Mason <chris.mason@oracle.com>2009-02-12 10:06:04 -0500
commitb335b0034e252e79ec2e9c6697f5d663c4627bec (patch)
treef99286083d21fdc298b50d3d47dc96a9f1f54bb8 /fs/btrfs/inode.c
parente1df36d2f18254d0690a0fbe036cece74ec311b8 (diff)
downloadop-kernel-dev-b335b0034e252e79ec2e9c6697f5d663c4627bec.zip
op-kernel-dev-b335b0034e252e79ec2e9c6697f5d663c4627bec.tar.gz
Btrfs: Avoid using __GFP_HIGHMEM with slab allocator
btrfs_releasepage may call kmem_cache_alloc indirectly, and provide same GFP flags it gets to kmem_cache_alloc. So it's possible to use __GFP_HIGHMEM with the slab allocator. Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 8f07062..638bcb5 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4263,7 +4263,7 @@ static int btrfs_releasepage(struct page *page, gfp_t gfp_flags)
{
if (PageWriteback(page) || PageDirty(page))
return 0;
- return __btrfs_releasepage(page, gfp_flags);
+ return __btrfs_releasepage(page, gfp_flags & GFP_NOFS);
}
static void btrfs_invalidatepage(struct page *page, unsigned long offset)
OpenPOWER on IntegriCloud