]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext2_get_page(): saner type
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 14 Dec 2022 01:07:28 +0000 (20:07 -0500)
committerJan Kara <jack@suse.cz>
Mon, 29 May 2023 09:03:22 +0000 (11:03 +0200)
commit46022375abe8160b6c952a2ca0ea7988be6b888d
tree4e405fbdb457456c56a8797a205f07fc90accaff
parent86008392695bd7a910b9d1452c828f9c7d1a6a1f
ext2_get_page(): saner type

We need to pass to caller both the page reference and pointer to the
first byte in the now-mapped page.  The former always has the same type,
the latter varies from caller to caller.  So make it
void *ext2_get_page(...., struct page **page)
rather than
struct page *ext2_get_page(..., void **page_addr)
and avoid the casts...

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