xfs
[Top] [All Lists]

[PATCH,reflink] xfs: use GPF_NOFS in xfs_refcountbt_init_cursor

To: darrick.wong@xxxxxxxxxx
Subject: [PATCH,reflink] xfs: use GPF_NOFS in xfs_refcountbt_init_cursor
From: Christoph Hellwig <hch@xxxxxx>
Date: Mon, 23 May 2016 17:07:57 +0200
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
As it can be called under the ilock.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
 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

<Prev in Thread] Current Thread [Next in Thread>