|
@@ -903,9 +903,9 @@ xfs_can_free_eofblocks(struct xfs_inode *ip, bool force)
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
- * This is called by xfs_inactive to free any blocks beyond eof
|
|
|
|
- * when the link count isn't zero and by xfs_dm_punch_hole() when
|
|
|
|
- * punching a hole to EOF.
|
|
|
|
|
|
+ * This is called to free any blocks beyond eof. The caller must hold
|
|
|
|
+ * IOLOCK_EXCL unless we are in the inode reclaim path and have the only
|
|
|
|
+ * reference to the inode.
|
|
*/
|
|
*/
|
|
int
|
|
int
|
|
xfs_free_eofblocks(
|
|
xfs_free_eofblocks(
|
|
@@ -920,8 +920,6 @@ xfs_free_eofblocks(
|
|
struct xfs_bmbt_irec imap;
|
|
struct xfs_bmbt_irec imap;
|
|
struct xfs_mount *mp = ip->i_mount;
|
|
struct xfs_mount *mp = ip->i_mount;
|
|
|
|
|
|
- ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL));
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Figure out if there are any blocks beyond the end
|
|
* Figure out if there are any blocks beyond the end
|
|
* of the file. If not, then there is nothing to do.
|
|
* of the file. If not, then there is nothing to do.
|