diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-10-03 17:09:16 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-10-07 13:51:47 +0200 |
commit | 6ef6a0e821d3dad6bf8a5d5508762dba9042c84b (patch) | |
tree | 232a6fe656e8d4821decbf14a923d92a3fe7ac26 /scripts/git.orderFile | |
parent | xfs: don't allocate COW extents when unsharing a hole (diff) | |
download | linux-6ef6a0e821d3dad6bf8a5d5508762dba9042c84b.tar.xz linux-6ef6a0e821d3dad6bf8a5d5508762dba9042c84b.zip |
iomap: share iomap_unshare_iter predicate code with fsdax
The predicate code that iomap_unshare_iter uses to decide if it's really
needs to unshare a file range mapping should be shared with the fsdax
version, because right now they're opencoded and inconsistent.
Note that we simplify the predicate logic a bit -- we no longer allow
unsharing of inline data mappings, but there aren't any filesystems that
allow shared inline data currently.
This is a fix in the sense that it should have been ported to fsdax.
Fixes: b53fdb215d13 ("iomap: improve shared block detection in iomap_unshare_iter")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/172796813294.1131942.15762084021076932620.stgit@frogsfrogsfrogs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions