Commit 0461a320 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: hide xfs_icache_free_eofblocks



Change the one remaining caller of xfs_icache_free_eofblocks to use our
new combined blockgc scan function instead, since we will soon be
combining the two scans.  This introduces a slight behavior change,
since the XFS_IOC_FREE_EOFBLOCKS now clears out speculative CoW
reservations in addition to post-eof blocks.

Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent f9296569
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1324,7 +1324,7 @@ xfs_inode_free_eofblocks(
	return ret;
}

int
static int
xfs_icache_free_eofblocks(
	struct xfs_mount	*mp,
	struct xfs_eofblocks	*eofb)
+0 −1
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ int xfs_blockgc_free_space(struct xfs_mount *mp, struct xfs_eofblocks *eofb);

void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip);
void xfs_inode_clear_eofblocks_tag(struct xfs_inode *ip);
int xfs_icache_free_eofblocks(struct xfs_mount *, struct xfs_eofblocks *);
void xfs_eofblocks_worker(struct work_struct *);
void xfs_queue_eofblocks(struct xfs_mount *);

+1 −1
Original line number Diff line number Diff line
@@ -2342,7 +2342,7 @@ xfs_file_ioctl(
		trace_xfs_ioc_free_eofblocks(mp, &keofb, _RET_IP_);

		sb_start_write(mp->m_super);
		error = xfs_icache_free_eofblocks(mp, &keofb);
		error = xfs_blockgc_free_space(mp, &keofb);
		sb_end_write(mp->m_super);
		return error;
	}