[PATCH,reflink] xfs: use GPF_NOFS in xfs_refcountbt_init_cursor
Christoph Hellwig
hch at lst.de
Mon May 23 10:07:57 CDT 2016
As it can be called under the ilock.
Signed-off-by: Christoph Hellwig <hch at lst.de>
---
fs/xfs/libxfs/xfs_refcount_btree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/libxfs/xfs_refcount_btree.c b/fs/xfs/libxfs/xfs_refcount_btree.c
index 770aee5..3391cbd 100644
--- a/fs/xfs/libxfs/xfs_refcount_btree.c
+++ b/fs/xfs/libxfs/xfs_refcount_btree.c
@@ -339,7 +339,7 @@ xfs_refcountbt_init_cursor(
ASSERT(agno != NULLAGNUMBER);
ASSERT(agno < mp->m_sb.sb_agcount);
- cur = kmem_zone_zalloc(xfs_btree_cur_zone, KM_SLEEP);
+ cur = kmem_zone_zalloc(xfs_btree_cur_zone, KM_NOFS);
cur->bc_tp = tp;
cur->bc_mp = mp;
--
2.1.4
More information about the xfs
mailing list