|
@@ -151,7 +151,7 @@ xfs_readlink(
|
|
|
* when the link count isn't zero and by xfs_dm_punch_hole() when
|
|
|
* punching a hole to EOF.
|
|
|
*/
|
|
|
-STATIC int
|
|
|
+int
|
|
|
xfs_free_eofblocks(
|
|
|
xfs_mount_t *mp,
|
|
|
xfs_inode_t *ip,
|
|
@@ -200,7 +200,7 @@ xfs_free_eofblocks(
|
|
|
if (need_iolock) {
|
|
|
if (!xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) {
|
|
|
xfs_trans_cancel(tp, 0);
|
|
|
- return 0;
|
|
|
+ return EAGAIN;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -463,7 +463,7 @@ xfs_release(
|
|
|
return 0;
|
|
|
|
|
|
error = xfs_free_eofblocks(mp, ip, true);
|
|
|
- if (error)
|
|
|
+ if (error && error != EAGAIN)
|
|
|
return error;
|
|
|
|
|
|
/* delalloc blocks after truncation means it really is dirty */
|