ext2_put_page(): accept any pointer within the page
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 14 Dec 2022 01:14:50 +0000 (20:14 -0500)
committerJan Kara <jack@suse.cz>
Mon, 29 May 2023 09:03:25 +0000 (11:03 +0200)
commit91f646fb971f4401216a2dff5c568bcbce79a923
tree97e6eac0e81885499e3b6ffd592ab38f5c002690
parent46022375abe8160b6c952a2ca0ea7988be6b888d
ext2_put_page(): accept any pointer within the page

eliminates the need to keep the pointer to the first byte within
the page if we are guaranteed to have pointers to some byte
in the same page at hand.

Don't backport without commit 88d7b12068b9 ("highmem: round down the
address passed to kunmap_flush_on_unmap()").

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Tested-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/dir.c
fs/ext2/namei.c