summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_extent_busy.c
diff options
context:
space:
mode:
authorWengang Wang <wen.gang.wang@oracle.com>2024-09-24 21:38:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-30 17:23:51 +0300
commit98b8fd60b338d5d35b1092e011d996e58e1820ca (patch)
tree907ac042fb51cf020109557a581060dae33af06b /fs/xfs/xfs_extent_busy.c
parentb36c2ae02aa7c6559e32e342e05b5b26301b30ad (diff)
downloadlinux-98b8fd60b338d5d35b1092e011d996e58e1820ca.tar.xz
xfs: fix extent busy updating
[ Upstream commit 601a27ea09a317d0fe2895df7d875381fb393041 ] In xfs_extent_busy_update_extent() case 6 and 7, whenever bno is modified on extent busy, the relavent length has to be modified accordingly. Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com> Acked-by: Chandan Babu R <chandanbabu@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_extent_busy.c')
-rw-r--r--fs/xfs/xfs_extent_busy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_extent_busy.c b/fs/xfs/xfs_extent_busy.c
index ad22a003f959..f3d328e4a440 100644
--- a/fs/xfs/xfs_extent_busy.c
+++ b/fs/xfs/xfs_extent_busy.c
@@ -236,6 +236,7 @@ xfs_extent_busy_update_extent(
*
*/
busyp->bno = fend;
+ busyp->length = bend - fend;
} else if (bbno < fbno) {
/*
* Case 8: