summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_icache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_icache.c')
-rw-r--r--fs/xfs/xfs_icache.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c
index 23b04cfa38f3..e8a2e1cf7577 100644
--- a/fs/xfs/xfs_icache.c
+++ b/fs/xfs/xfs_icache.c
@@ -1047,7 +1047,7 @@ restart:
break;
cond_resched();
- if (tag == XFS_ICI_RECLAIM_TAG && eofb) {
+ if (eofb && (eofb->eof_flags & XFS_EOF_FLAGS_LIMIT)) {
eofb->nr_to_scan -= XFS_LOOKUP_BATCH;
if (eofb->nr_to_scan < 0)
break;
@@ -1249,7 +1249,10 @@ xfs_reclaim_inodes_nr(
struct xfs_mount *mp,
int nr_to_scan)
{
- struct xfs_eofblocks eofb = { .nr_to_scan = nr_to_scan };
+ struct xfs_eofblocks eofb = {
+ .eof_flags = XFS_EOF_FLAGS_LIMIT,
+ .nr_to_scan = nr_to_scan
+ };
/* kick background reclaimer and push the AIL */
xfs_reclaim_work_queue(mp);