OSDN Git Service

xfs: mark xfs_bmap_set_attrforkoff static
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 21:58:59 +0000 (14:58 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 2 Jun 2021 21:58:59 +0000 (14:58 -0700)
xfs_bmap_set_attrforkoff is only used inside of xfs_bmap.c, so mark it
static.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h

index a3e0e6f..7eb6b28 100644 (file)
@@ -1028,7 +1028,7 @@ xfs_bmap_add_attrfork_local(
 /*
  * Set an inode attr fork offset based on the format of the data fork.
  */
-int
+static int
 xfs_bmap_set_attrforkoff(
        struct xfs_inode        *ip,
        int                     size,
index f9a390e..67641f6 100644 (file)
@@ -187,7 +187,6 @@ void        xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
                xfs_filblks_t len);
 unsigned int xfs_bmap_compute_attr_offset(struct xfs_mount *mp);
 int    xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd);
-int    xfs_bmap_set_attrforkoff(struct xfs_inode *ip, int size, int *version);
 void   xfs_bmap_local_to_extents_empty(struct xfs_trans *tp,
                struct xfs_inode *ip, int whichfork);
 void   __xfs_bmap_add_free(struct xfs_trans *tp, xfs_fsblock_t bno,