summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-10-02 18:02:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-17 16:21:33 +0300
commitfcb8a66d83c44f111d93d51a6f94b13819ca061e (patch)
tree045606e6ea5b90767a7af95109816342b90df69f /net
parent1bec6782a25c9b92c203ea7a1b3e3dc6a468cbc4 (diff)
downloadlinux-fcb8a66d83c44f111d93d51a6f94b13819ca061e.tar.xz
iomap: constrain the file range passed to iomap_file_unshare
[ Upstream commit a311a08a4237241fb5b9d219d3e33346de6e83e0 ] File contents can only be shared (i.e. reflinked) below EOF, so it makes no sense to try to unshare ranges beyond EOF. Constrain the file range parameters here so that we don't have to do that in the callers. Fixes: 5f4e5752a8a3 ("fs: add iomap_file_dirty") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Link: https://lore.kernel.org/r/20241002150213.GC21853@frogsfrogsfrogs Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions