fs: xfs: Remove KM_NOSLEEP and KM_SLEEP.
Since no caller is using KM_NOSLEEP and no callee branches on KM_SLEEP, we can remove KM_NOSLEEP and replace KM_SLEEP with 0. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
a55aa89aab
commit
707e0ddaf6
@@ -1189,7 +1189,7 @@ __xfs_refcount_add(
|
||||
blockcount);
|
||||
|
||||
ri = kmem_alloc(sizeof(struct xfs_refcount_intent),
|
||||
KM_SLEEP | KM_NOFS);
|
||||
KM_NOFS);
|
||||
INIT_LIST_HEAD(&ri->ri_list);
|
||||
ri->ri_type = type;
|
||||
ri->ri_startblock = startblock;
|
||||
@@ -1602,7 +1602,7 @@ xfs_refcount_recover_extent(
|
||||
if (be32_to_cpu(rec->refc.rc_refcount) != 1)
|
||||
return -EFSCORRUPTED;
|
||||
|
||||
rr = kmem_alloc(sizeof(struct xfs_refcount_recovery), KM_SLEEP);
|
||||
rr = kmem_alloc(sizeof(struct xfs_refcount_recovery), 0);
|
||||
xfs_refcount_btrec_to_irec(rec, &rr->rr_rrec);
|
||||
list_add_tail(&rr->rr_list, debris);
|
||||
|
||||
|
Reference in New Issue
Block a user