diff options
| author | 2016-12-09 16:49:54 +1100 | |
|---|---|---|
| committer | 2016-12-09 16:49:54 +1100 | |
| commit | b24a978c377be5f14e798cb41238e66fe51aab2f (patch) | |
| tree | d2d557530fcef7aa3cfde0ffd8d2df1707a27bcd /fs/xfs/libxfs/xfs_ialloc_btree.c | |
| parent | xfs: use xfs_vn_setattr_size to check on new size (diff) | |
| download | linux-dev-b24a978c377be5f14e798cb41238e66fe51aab2f.tar.xz linux-dev-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_ialloc_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_ialloc_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c index eab68ae2e011..6c6b95947e71 100644 --- a/fs/xfs/libxfs/xfs_ialloc_btree.c +++ b/fs/xfs/libxfs/xfs_ialloc_btree.c @@ -357,7 +357,7 @@ xfs_inobt_init_cursor( struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); struct xfs_btree_cur *cur; - 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; |
