Commit 773f0b4f authored by Dave Chinner's avatar Dave Chinner Committed by openeuler-sync-bot
Browse files

xfs,iomap: move delalloc punching to iomap

mainline inclusion
from mainline-v6.1-rc4
commit 9c7babf9
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=9c7babf94a0d686b552e53aded8d4703d1b8b92b



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

Because that's what Christoph wants for this error handling path
only XFS uses.

It requires a new iomap export for handling errors over delalloc
ranges. This is basically the XFS code as is stands, but even though
Christoph wants this as iomap funcitonality, we still have
to call it from the filesystem specific ->iomap_end callback, and
call into the iomap code with yet another filesystem specific
callback to punch the delalloc extent within the defined ranges.

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

Conflicts:
	fs/xfs/xfs_iomap.c
	fs/iomap/buffered-io.c
	include/linux/iomap.h
(cherry picked from commit 7dd01862)
parent 1b92d75b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment