aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_attr.h
diff options
context:
space:
mode:
authorGravatar Darrick J. Wong <djwong@kernel.org> 2022-05-22 15:59:48 +1000
committerGravatar Dave Chinner <david@fromorbit.com> 2022-05-22 15:59:48 +1000
commite2c78949b641d34cb4051b32c2fa5e03a4bfef35 (patch)
tree6f1f631571c60a88b9ef410d67787a0ed8b0f73c /fs/xfs/libxfs/xfs_attr.h
parentxfs: put the xattr intent item op flags in their own namespace (diff)
downloadlinux-e2c78949b641d34cb4051b32c2fa5e03a4bfef35.tar.gz
linux-e2c78949b641d34cb4051b32c2fa5e03a4bfef35.tar.bz2
linux-e2c78949b641d34cb4051b32c2fa5e03a4bfef35.zip
xfs: use a separate slab cache for deferred xattr work state
Create a separate slab cache for struct xfs_attr_item objects, since we can pack the (104-byte) intent items more tightly than we can with the general slab cache objects. On x86, this means 39 intents per memory page instead of 32. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Allison Henderson <allison.henderson@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr.h')
-rw-r--r--fs/xfs/libxfs/xfs_attr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.h b/fs/xfs/libxfs/xfs_attr.h
index c739caa11a4b..cb3b3d270569 100644
--- a/fs/xfs/libxfs/xfs_attr.h
+++ b/fs/xfs/libxfs/xfs_attr.h
@@ -634,4 +634,8 @@ xfs_attr_init_replace_state(struct xfs_da_args *args)
return xfs_attr_init_add_state(args);
}
+extern struct kmem_cache *xfs_attr_intent_cache;
+int __init xfs_attr_intent_init_cache(void);
+void xfs_attr_intent_destroy_cache(void);
+
#endif /* __XFS_ATTR_H__ */