diff options
author | Brian Foster <bfoster@redhat.com> | 2019-02-01 12:14:23 -0500 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-11 19:07:01 -0500 |
commit | 3b35089807304f208419b5ad9cc3c5f731225cd9 (patch) | |
tree | 1db6026bc4b610447511337ea7badd88d06c7bc4 /fs/xfs/libxfs | |
parent | d9252d526ba66a8f95ad2830ae1b62825ef3dbd5 (diff) |
xfs: remove superfluous writeback mapping eof trimming
Now that the cached writeback mapping is explicitly invalidated on
data fork changes, the EOF trimming band-aid is no longer necessary.
Remove xfs_trim_extent_eof() as well since it has no other users.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-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/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 11 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 332eefa2700b..4c73927819c2 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c | |||
@@ -3685,17 +3685,6 @@ xfs_trim_extent( | |||
3685 | } | 3685 | } |
3686 | } | 3686 | } |
3687 | 3687 | ||
3688 | /* trim extent to within eof */ | ||
3689 | void | ||
3690 | xfs_trim_extent_eof( | ||
3691 | struct xfs_bmbt_irec *irec, | ||
3692 | struct xfs_inode *ip) | ||
3693 | |||
3694 | { | ||
3695 | xfs_trim_extent(irec, 0, XFS_B_TO_FSB(ip->i_mount, | ||
3696 | i_size_read(VFS_I(ip)))); | ||
3697 | } | ||
3698 | |||
3699 | /* | 3688 | /* |
3700 | * Trim the returned map to the required bounds | 3689 | * Trim the returned map to the required bounds |
3701 | */ | 3690 | */ |
diff --git a/fs/xfs/libxfs/xfs_bmap.h b/fs/xfs/libxfs/xfs_bmap.h index 09d3ea97cc15..b4ff710d7250 100644 --- a/fs/xfs/libxfs/xfs_bmap.h +++ b/fs/xfs/libxfs/xfs_bmap.h | |||
@@ -181,7 +181,6 @@ static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec) | |||
181 | 181 | ||
182 | void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, | 182 | void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, |
183 | xfs_filblks_t len); | 183 | xfs_filblks_t len); |
184 | void xfs_trim_extent_eof(struct xfs_bmbt_irec *, struct xfs_inode *); | ||
185 | int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd); | 184 | int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd); |
186 | int xfs_bmap_set_attrforkoff(struct xfs_inode *ip, int size, int *version); | 185 | int xfs_bmap_set_attrforkoff(struct xfs_inode *ip, int size, int *version); |
187 | void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork); | 186 | void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork); |