aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_attr_item.c
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
commit4136e38af728eddcab2e51aecde28e94d0782b9b (patch)
tree4b4628b1635d4f9e2510cf87cf6323b817b10cb6 /fs/xfs/xfs_attr_item.c
parentxfs: remove struct xfs_attr_item.xattri_flags (diff)
downloadlinux-4136e38af728eddcab2e51aecde28e94d0782b9b.tar.gz
linux-4136e38af728eddcab2e51aecde28e94d0782b9b.tar.bz2
linux-4136e38af728eddcab2e51aecde28e94d0782b9b.zip
xfs: put attr[id] log item cache init with the others
Initialize and destroy the xattr log item caches in the same places that we do all the other log item caches. 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/xfs_attr_item.c')
-rw-r--r--fs/xfs/xfs_attr_item.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_attr_item.c b/fs/xfs/xfs_attr_item.c
index f85bcbfc2478..ca0dd46c0ae5 100644
--- a/fs/xfs/xfs_attr_item.c
+++ b/fs/xfs/xfs_attr_item.c
@@ -29,6 +29,9 @@
#include "xfs_log_priv.h"
#include "xfs_log_recover.h"
+struct kmem_cache *xfs_attri_cache;
+struct kmem_cache *xfs_attrd_cache;
+
static const struct xfs_item_ops xfs_attri_item_ops;
static const struct xfs_item_ops xfs_attrd_item_ops;
static struct xfs_attrd_log_item *xfs_trans_get_attrd(struct xfs_trans *tp,