Commit 64e6428d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dave Chinner

xfs: remove xfs_bunmapi_cow

Since no one uses it anymore.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent c1112b6e
...@@ -5414,28 +5414,6 @@ xfs_bmap_del_extent( ...@@ -5414,28 +5414,6 @@ xfs_bmap_del_extent(
return error; return error;
} }
/* Remove an extent from the CoW fork. Similar to xfs_bmap_del_extent. */
int
xfs_bunmapi_cow(
struct xfs_inode *ip,
struct xfs_bmbt_irec *del)
{
struct xfs_bmbt_rec_host *ep;
struct xfs_bmbt_irec got;
struct xfs_bmbt_irec new;
int eof;
xfs_extnum_t eidx;
ep = xfs_bmap_search_extents(ip, del->br_startoff, XFS_COW_FORK, &eof,
&eidx, &got, &new);
ASSERT(ep);
if (isnullstartblock(got.br_startblock))
xfs_bmap_del_extent_delay(ip, XFS_COW_FORK, &eidx, &got, del);
else
xfs_bmap_del_extent_cow(ip, &eidx, &got, del);
return 0;
}
/* /*
* Unmap (remove) blocks from a file. * Unmap (remove) blocks from a file.
* If nexts is nonzero then the number of extents to remove is limited to * If nexts is nonzero then the number of extents to remove is limited to
......
...@@ -223,7 +223,6 @@ int xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip, ...@@ -223,7 +223,6 @@ int xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip,
xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_fileoff_t bno, xfs_filblks_t len, int flags,
xfs_extnum_t nexts, xfs_fsblock_t *firstblock, xfs_extnum_t nexts, xfs_fsblock_t *firstblock,
struct xfs_defer_ops *dfops, int *done); struct xfs_defer_ops *dfops, int *done);
int xfs_bunmapi_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *del);
int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork, int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork,
xfs_extnum_t *idx, struct xfs_bmbt_irec *got, xfs_extnum_t *idx, struct xfs_bmbt_irec *got,
struct xfs_bmbt_irec *del); struct xfs_bmbt_irec *del);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment