From 69578e5081d2bd7b2d44c5b11df01cd79ea9ab14 Mon Sep 17 00:00:00 2001 From: Wengang Wang Date: Tue, 18 Apr 2023 21:34:22 +0800 Subject: [PATCH] xfs: fix extent busy updating mainline inclusion from mainline-v6.2-rc4 commit 601a27ea09a317d0fe2895df7d875381fb393041 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I4KIAO CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=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 Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: yangerkun Reviewed-by: Zhang Yi Signed-off-by: Jialin Zhang --- fs/xfs/xfs_extent_busy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/xfs/xfs_extent_busy.c b/fs/xfs/xfs_extent_busy.c index a4075685d9eb..26680444969c 100644 --- a/fs/xfs/xfs_extent_busy.c +++ b/fs/xfs/xfs_extent_busy.c @@ -244,6 +244,7 @@ xfs_extent_busy_update_extent( * */ busyp->bno = fend; + busyp->length = bend - fend; } else if (bbno < fbno) { /* * Case 8: -- GitLab