Skip to content

Commit d59eada

Browse files
Dave Chinnerdjwong
authored andcommitted
xfs: correctly acount for reclaimable slabs
The XFS inode item slab actually reclaimed by inode shrinker callbacks from the memory reclaim subsystem. These should be marked as reclaimable so the mm subsystem has the full picture of how much memory it can actually reclaim from the XFS slab caches. Signed-off-by: Dave Chinner <[email protected]> Reviewed-by: Brian Foster <[email protected]> Reviewed-by: Allison Collins <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 12eba65 commit d59eada

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/xfs/xfs_super.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,8 @@ xfs_init_zones(void)
18611861

18621862
xfs_ili_zone = kmem_cache_create("xfs_ili",
18631863
sizeof(struct xfs_inode_log_item), 0,
1864-
SLAB_MEM_SPREAD, NULL);
1864+
SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD,
1865+
NULL);
18651866
if (!xfs_ili_zone)
18661867
goto out_destroy_inode_zone;
18671868

0 commit comments

Comments
 (0)