diff options
author | Christoph Hellwig <hch@lst.de> | 2019-10-30 12:24:57 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-03 10:22:30 -0800 |
commit | ae7e403fa5bbb3ab309b3281e3cdcb4dd720e939 (patch) | |
tree | 7e6db2208335549db39a7a1c6d11e11d5428887b /fs/xfs/xfs_bmap_util.h | |
parent | 249bd9087a5264d2b8a974081870e2e27671b4dc (diff) | |
download | linux-riscv-ae7e403fa5bbb3ab309b3281e3cdcb4dd720e939.tar.gz linux-riscv-ae7e403fa5bbb3ab309b3281e3cdcb4dd720e939.tar.bz2 linux-riscv-ae7e403fa5bbb3ab309b3281e3cdcb4dd720e939.zip |
xfs: simplify xfs_iomap_eof_align_last_fsb
By open coding xfs_bmap_last_extent instead of calling it through a
double indirection we don't need to handle an error return that
can't happen given that we are guaranteed to have the extent list in
memory already. Also simplify the calling conventions a little and
move the extent list assert from the only caller into the function.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.h')
-rw-r--r-- | fs/xfs/xfs_bmap_util.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap_util.h b/fs/xfs/xfs_bmap_util.h index 3e0fa0d363d1..9f993168b55b 100644 --- a/fs/xfs/xfs_bmap_util.h +++ b/fs/xfs/xfs_bmap_util.h @@ -30,8 +30,6 @@ xfs_bmap_rtalloc(struct xfs_bmalloca *ap) } #endif /* CONFIG_XFS_RT */ -int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff, - int whichfork, int *eof); int xfs_bmap_punch_delalloc_range(struct xfs_inode *ip, xfs_fileoff_t start_fsb, xfs_fileoff_t length); |