xfs: fix the calculation for "end" and "length"
authorShiyang Ruan <ruansy.fnst@fujitsu.com>
Fri, 30 Jun 2023 00:40:30 +0000 (17:40 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 2 Jul 2023 16:26:19 +0000 (09:26 -0700)
commit5cf32f63b0f4c520460c1a5dd915dc4f09085f29
tree33424fcb36cd47496bcac84c392d2fbdc8740f48
parent75dc0345312221971903b2e28279b7e24b7dbb1b
xfs: fix the calculation for "end" and "length"

The value of "end" should be "start + length - 1".

Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_notify_failure.c