Commit f76b635e authored by Dave Chinner's avatar Dave Chinner Committed by Long Li
Browse files

xfs: xfs_bmap_punch_delalloc_range() should take a byte range

mainline inclusion
from mainline-v6.1-rc4
commit 7348b322
category: bugfix
bugzilla: 189079, https://gitee.com/openeuler/kernel/issues/I76JSK
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7348b322332d8602a4133f0b861334ea021b134a



--------------------------------

All the callers of xfs_bmap_punch_delalloc_range() jump through
hoops to convert a byte range to filesystem blocks before calling
xfs_bmap_punch_delalloc_range(). Instead, pass the byte range to
xfs_bmap_punch_delalloc_range() and have it do the conversion to
filesystem blocks internally.

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>

Conflicts:
	fs/xfs/xfs_aops.c

Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent c515b6a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment