Skip to content

Commit 074aea4

Browse files
Christoph HellwigChandan Babu R
authored andcommitted
xfs: remove xfs_attr_sf_hdr_t
Remove the last two users of the typedef. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
1 parent 4141472 commit 074aea4

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

fs/xfs/libxfs/xfs_attr_leaf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,15 +816,15 @@ xfs_attr_sf_removename(
816816
/*
817817
* Fix up the start offset of the attribute fork
818818
*/
819-
if (totsize == sizeof(xfs_attr_sf_hdr_t) && xfs_has_attr2(mp) &&
819+
if (totsize == sizeof(struct xfs_attr_sf_hdr) && xfs_has_attr2(mp) &&
820820
(dp->i_df.if_format != XFS_DINODE_FMT_BTREE) &&
821821
!(args->op_flags & (XFS_DA_OP_ADDNAME | XFS_DA_OP_REPLACE))) {
822822
xfs_attr_fork_remove(dp, args->trans);
823823
} else {
824824
xfs_idata_realloc(dp, -size, XFS_ATTR_FORK);
825825
dp->i_forkoff = xfs_attr_shortform_bytesfit(dp, totsize);
826826
ASSERT(dp->i_forkoff);
827-
ASSERT(totsize > sizeof(xfs_attr_sf_hdr_t) ||
827+
ASSERT(totsize > sizeof(struct xfs_attr_sf_hdr) ||
828828
(args->op_flags & XFS_DA_OP_ADDNAME) ||
829829
!xfs_has_attr2(mp) ||
830830
dp->i_df.if_format == XFS_DINODE_FMT_BTREE);

fs/xfs/libxfs/xfs_attr_sf.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
#ifndef __XFS_ATTR_SF_H__
77
#define __XFS_ATTR_SF_H__
88

9-
/*
10-
* Attribute storage when stored inside the inode.
11-
*
12-
* Small attribute lists are packed as tightly as possible so as
13-
* to fit into the literal area of the inode.
14-
*/
15-
typedef struct xfs_attr_sf_hdr xfs_attr_sf_hdr_t;
16-
179
/*
1810
* We generate this then sort it, attr_list() must return things in hash-order.
1911
*/

0 commit comments

Comments
 (0)