mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
xfs: remove several unused and never-implemented declarations
Over time a number of function declarations in various headers have become stale: either their implementations were removed when their last callers went away, or they were never implemented in the first place. None of them refer to anything anymore. Remove the following dead declarations and the unused stub: - xlog_assign_tail_lsn() and xlog_assign_tail_lsn_locked() - xfs_iext_realloc() - xfs_buf_iodone() - xfs_scrub_tester() and xfs_scrub_setup_inode_bmap_data() (never implemented placeholders) - the !CONFIG_XFS_ONLINE_REPAIR stub of xrep_tempfile_iolock_both() Signed-off-by: Zizhi Wo <wozizhi@huawei.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
4d0624679a
commit
157dcb8230
|
|
@ -74,7 +74,6 @@ int xchk_setup_ag_rmapbt(struct xfs_scrub *sc);
|
|||
int xchk_setup_ag_refcountbt(struct xfs_scrub *sc);
|
||||
int xchk_setup_inode(struct xfs_scrub *sc);
|
||||
int xchk_setup_inode_bmap(struct xfs_scrub *sc);
|
||||
int xchk_setup_inode_bmap_data(struct xfs_scrub *sc);
|
||||
int xchk_setup_directory(struct xfs_scrub *sc);
|
||||
int xchk_setup_xattr(struct xfs_scrub *sc);
|
||||
int xchk_setup_symlink(struct xfs_scrub *sc);
|
||||
|
|
|
|||
|
|
@ -261,7 +261,6 @@ static inline int xchk_nothing(struct xfs_scrub *sc)
|
|||
}
|
||||
|
||||
/* Metadata scrubbers */
|
||||
int xchk_tester(struct xfs_scrub *sc);
|
||||
int xchk_superblock(struct xfs_scrub *sc);
|
||||
int xchk_agf(struct xfs_scrub *sc);
|
||||
int xchk_agfl(struct xfs_scrub *sc);
|
||||
|
|
|
|||
|
|
@ -39,10 +39,6 @@ int xrep_tempfile_roll_trans(struct xfs_scrub *sc);
|
|||
void xrep_tempfile_copyout_local(struct xfs_scrub *sc, int whichfork);
|
||||
bool xrep_is_tempfile(const struct xfs_inode *ip);
|
||||
#else
|
||||
static inline void xrep_tempfile_iolock_both(struct xfs_scrub *sc)
|
||||
{
|
||||
xchk_ilock(sc, XFS_IOLOCK_EXCL);
|
||||
}
|
||||
# define xrep_is_tempfile(ip) (false)
|
||||
# define xrep_tempfile_adjust_directory_tree(sc) (0)
|
||||
# define xrep_tempfile_rele(sc)
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ static inline void xfs_buf_dquot_iodone(struct xfs_buf *bp)
|
|||
{
|
||||
}
|
||||
#endif /* CONFIG_XFS_QUOTA */
|
||||
void xfs_buf_iodone(struct xfs_buf *);
|
||||
bool xfs_buf_log_check_iovec(struct kvec *iovec);
|
||||
|
||||
unsigned int xfs_buf_inval_log_space(unsigned int map_count,
|
||||
|
|
|
|||
|
|
@ -585,7 +585,6 @@ uint xfs_ilock_attr_map_shared(struct xfs_inode *);
|
|||
int xfs_ifree(struct xfs_trans *, struct xfs_inode *);
|
||||
int xfs_itruncate_extents_flags(struct xfs_trans **,
|
||||
struct xfs_inode *, int, xfs_fsize_t, int);
|
||||
void xfs_iext_realloc(xfs_inode_t *, int, int);
|
||||
|
||||
int xfs_log_force_inode(struct xfs_inode *ip);
|
||||
void xfs_iunpin_wait(xfs_inode_t *);
|
||||
|
|
|
|||
|
|
@ -105,8 +105,6 @@ int xfs_log_mount(struct xfs_mount *mp,
|
|||
int num_bblocks);
|
||||
int xfs_log_mount_finish(struct xfs_mount *mp);
|
||||
void xfs_log_mount_cancel(struct xfs_mount *);
|
||||
xfs_lsn_t xlog_assign_tail_lsn(struct xfs_mount *mp);
|
||||
xfs_lsn_t xlog_assign_tail_lsn_locked(struct xfs_mount *mp);
|
||||
void xfs_log_space_wake(struct xfs_mount *mp);
|
||||
int xfs_log_reserve(struct xfs_mount *mp, int length, int count,
|
||||
struct xlog_ticket **ticket, bool permanent);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user