Skip to content

Commit 64e6428

Browse files
Christoph Hellwigdchinner
authored andcommitted
xfs: remove xfs_bunmapi_cow
Since no one uses it anymore. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Reviewed-by: Brian Foster <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
1 parent c1112b6 commit 64e6428

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5414,28 +5414,6 @@ xfs_bmap_del_extent(
54145414
return error;
54155415
}
54165416

5417-
/* Remove an extent from the CoW fork. Similar to xfs_bmap_del_extent. */
5418-
int
5419-
xfs_bunmapi_cow(
5420-
struct xfs_inode *ip,
5421-
struct xfs_bmbt_irec *del)
5422-
{
5423-
struct xfs_bmbt_rec_host *ep;
5424-
struct xfs_bmbt_irec got;
5425-
struct xfs_bmbt_irec new;
5426-
int eof;
5427-
xfs_extnum_t eidx;
5428-
5429-
ep = xfs_bmap_search_extents(ip, del->br_startoff, XFS_COW_FORK, &eof,
5430-
&eidx, &got, &new);
5431-
ASSERT(ep);
5432-
if (isnullstartblock(got.br_startblock))
5433-
xfs_bmap_del_extent_delay(ip, XFS_COW_FORK, &eidx, &got, del);
5434-
else
5435-
xfs_bmap_del_extent_cow(ip, &eidx, &got, del);
5436-
return 0;
5437-
}
5438-
54395417
/*
54405418
* Unmap (remove) blocks from a file.
54415419
* If nexts is nonzero then the number of extents to remove is limited to

fs/xfs/libxfs/xfs_bmap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ int xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip,
223223
xfs_fileoff_t bno, xfs_filblks_t len, int flags,
224224
xfs_extnum_t nexts, xfs_fsblock_t *firstblock,
225225
struct xfs_defer_ops *dfops, int *done);
226-
int xfs_bunmapi_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *del);
227226
int xfs_bmap_del_extent_delay(struct xfs_inode *ip, int whichfork,
228227
xfs_extnum_t *idx, struct xfs_bmbt_irec *got,
229228
struct xfs_bmbt_irec *del);

0 commit comments

Comments
 (0)