aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_attr.h
diff options
context:
space:
mode:
authorGravatar Darrick J. Wong <djwong@kernel.org> 2022-06-25 10:01:20 -0700
committerGravatar Darrick J. Wong <djwong@kernel.org> 2022-06-29 08:47:56 -0700
commite53bcffad0326c1ef4b4baec4262b5343e420c44 (patch)
tree9b449b623d66b1c3921d0a8bcc65686578d5dd34 /fs/xfs/libxfs/xfs_attr.h
parentxfs: empty xattr leaf header blocks are not corruption (diff)
downloadlinux-e53bcffad0326c1ef4b4baec4262b5343e420c44.tar.gz
linux-e53bcffad0326c1ef4b4baec4262b5343e420c44.tar.bz2
linux-e53bcffad0326c1ef4b4baec4262b5343e420c44.zip
xfs: don't hold xattr leaf buffers across transaction rolls
Now that we've established (again!) that empty xattr leaf buffers are ok, we no longer need to bhold them to transactions when we're creating new leaf blocks. Get rid of the entire mechanism, which should simplify the xattr code quite a bit. The original justification for using bhold here was to prevent the AIL from trying to write the empty leaf block into the fs during the brief time that we release the buffer lock. The reason for /that/ was to prevent recovery from tripping over the empty ondisk block. Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr.h')
-rw-r--r--fs/xfs/libxfs/xfs_attr.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.h b/fs/xfs/libxfs/xfs_attr.h
index b4a2fc77017e..dfb47fa63c6d 100644
--- a/fs/xfs/libxfs/xfs_attr.h
+++ b/fs/xfs/libxfs/xfs_attr.h
@@ -515,11 +515,6 @@ struct xfs_attr_intent {
*/
struct xfs_attri_log_nameval *xattri_nameval;
- /*
- * Used by xfs_attr_set to hold a leaf buffer across a transaction roll
- */
- struct xfs_buf *xattri_leaf_bp;
-
/* Used to keep track of current state of delayed operation */
enum xfs_delattr_state xattri_dela_state;