diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-12-09 06:49:54 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-12-09 06:49:54 +0100 |
commit | b24a978c377be5f14e798cb41238e66fe51aab2f (patch) | |
tree | d2d557530fcef7aa3cfde0ffd8d2df1707a27bcd /fs/xfs/libxfs/xfs_bmap_btree.c | |
parent | xfs: use xfs_vn_setattr_size to check on new size (diff) | |
download | linux-b24a978c377be5f14e798cb41238e66fe51aab2f.tar.xz linux-b24a978c377be5f14e798cb41238e66fe51aab2f.zip |
xfs: use GPF_NOFS when allocating btree cursors
Use NOFS for allocating btree cursors, since they can be called
under the ilock.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap_btree.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap_btree.c b/fs/xfs/libxfs/xfs_bmap_btree.c index 8007d2ba9aef..049fa597ae91 100644 --- a/fs/xfs/libxfs/xfs_bmap_btree.c +++ b/fs/xfs/libxfs/xfs_bmap_btree.c @@ -796,7 +796,7 @@ xfs_bmbt_init_cursor( struct xfs_btree_cur *cur; ASSERT(whichfork != XFS_COW_FORK); - 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; |