|
@@ -760,10 +760,8 @@ xfs_aops_discard_page(
|
|
"page discard on page "PTR_FMT", inode 0x%llx, offset %llu.",
|
|
"page discard on page "PTR_FMT", inode 0x%llx, offset %llu.",
|
|
page, ip->i_ino, offset);
|
|
page, ip->i_ino, offset);
|
|
|
|
|
|
- xfs_ilock(ip, XFS_ILOCK_EXCL);
|
|
|
|
error = xfs_bmap_punch_delalloc_range(ip, start_fsb,
|
|
error = xfs_bmap_punch_delalloc_range(ip, start_fsb,
|
|
PAGE_SIZE / i_blocksize(inode));
|
|
PAGE_SIZE / i_blocksize(inode));
|
|
- xfs_iunlock(ip, XFS_ILOCK_EXCL);
|
|
|
|
if (error && !XFS_FORCED_SHUTDOWN(mp))
|
|
if (error && !XFS_FORCED_SHUTDOWN(mp))
|
|
xfs_alert(mp, "page discard unable to remove delalloc mapping.");
|
|
xfs_alert(mp, "page discard unable to remove delalloc mapping.");
|
|
out_invalidate:
|
|
out_invalidate:
|