summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_bmap.h
diff options
context:
space:
mode:
authorChristoph Hellwig2017-10-19 20:07:34 +0200
committerDarrick J. Wong2017-10-27 00:38:28 +0200
commitbf8062800ad2d1ca22950c28910196bcbda89108 (patch)
tree94021e068fef570e231a1272669d6a11ab77772e /fs/xfs/libxfs/xfs_bmap.h
parentxfs: split xfs_bmap_shift_extents (diff)
downloadkernel-qcow2-linux-bf8062800ad2d1ca22950c28910196bcbda89108.tar.gz
kernel-qcow2-linux-bf8062800ad2d1ca22950c28910196bcbda89108.tar.xz
kernel-qcow2-linux-bf8062800ad2d1ca22950c28910196bcbda89108.zip
xfs: remove xfs_bmse_shift_one
Instead do the actual left and right shift work in the callers, and just keep a helper to update the bmap and rmap btrees as well as the in-core extent list. 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/libxfs/xfs_bmap.h')
-rw-r--r--fs/xfs/libxfs/xfs_bmap.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.h b/fs/xfs/libxfs/xfs_bmap.h
index ca37030f4cfb..1cd01582d581 100644
--- a/fs/xfs/libxfs/xfs_bmap.h
+++ b/fs/xfs/libxfs/xfs_bmap.h
@@ -183,11 +183,6 @@ static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec)
!isnullstartblock(irec->br_startblock);
}
-enum shift_direction {
- SHIFT_LEFT = 0,
- SHIFT_RIGHT,
-};
-
void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
xfs_filblks_t len);
void xfs_trim_extent_eof(struct xfs_bmbt_irec *, struct xfs_inode *);