Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d96f8f89 authored by Eric Sandeen's avatar Eric Sandeen Committed by Felix Blyakher
Browse files

xfs: add more statics & drop some unused functions



A lot more functions could be made static, but they need
forward declarations; this does some easy ones, and also
found a few unused functions in the process.

Signed-off-by: default avatarEric Sandeen <sandeen@sandeen.net>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarFelix Blyakher <felixb@sgi.com>
parent bc990f5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ xfs_barrier_test(
	return error;
}

void
STATIC void
xfs_mountfs_check_barriers(xfs_mount_t *mp)
{
	int error;
+0 −15
Original line number Diff line number Diff line
@@ -749,21 +749,6 @@ __xfs_inode_clear_reclaim_tag(
			XFS_INO_TO_AGINO(mp, ip->i_ino), XFS_ICI_RECLAIM_TAG);
}

void
xfs_inode_clear_reclaim_tag(
	xfs_inode_t	*ip)
{
	xfs_mount_t	*mp = ip->i_mount;
	xfs_perag_t	*pag = xfs_get_perag(mp, ip->i_ino);

	read_lock(&pag->pag_ici_lock);
	spin_lock(&ip->i_flags_lock);
	__xfs_inode_clear_reclaim_tag(mp, pag, ip);
	spin_unlock(&ip->i_flags_lock);
	read_unlock(&pag->pag_ici_lock);
	xfs_put_perag(mp, pag);
}

STATIC int
xfs_reclaim_inode_now(
	struct xfs_inode	*ip,
+0 −1
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ int xfs_reclaim_inodes(struct xfs_mount *mp, int mode);

void xfs_inode_set_reclaim_tag(struct xfs_inode *ip);
void __xfs_inode_set_reclaim_tag(struct xfs_perag *pag, struct xfs_inode *ip);
void xfs_inode_clear_reclaim_tag(struct xfs_inode *ip);
void __xfs_inode_clear_reclaim_tag(struct xfs_mount *mp, struct xfs_perag *pag,
				struct xfs_inode *ip);

+0 −3
Original line number Diff line number Diff line
@@ -91,9 +91,6 @@ typedef struct xfs_agf {
#define	XFS_AGF_BLOCK(mp)	XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp))
#define	XFS_BUF_TO_AGF(bp)	((xfs_agf_t *)XFS_BUF_PTR(bp))

extern int xfs_read_agf(struct xfs_mount *mp, struct xfs_trans *tp,
			xfs_agnumber_t agno, int flags, struct xfs_buf **bpp);

/*
 * Size of the unlinked inode hash table in the agi.
 */
+1 −1
Original line number Diff line number Diff line
@@ -2248,7 +2248,7 @@ xfs_alloc_put_freelist(
/*
 * Read in the allocation group header (free/alloc section).
 */
int					/* error */
STATIC int				/* error */
xfs_read_agf(
	struct xfs_mount	*mp,	/* mount point structure */
	struct xfs_trans	*tp,	/* transaction pointer */
Loading