fs/sysv: Use the offset_in_page() helper
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Thu, 19 Jan 2023 15:32:29 +0000 (16:32 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Jan 2023 00:45:38 +0000 (19:45 -0500)
commit4bb1a1375ac33950385d17321c546aeb520ba152
treeb845c511f46bc42da8b138a8310a6dc3aeba3343
parent4309093ecb841bbd27fcd23525dd41b9a6b437ea
fs/sysv: Use the offset_in_page() helper

Use the offset_in_page() helper because it is more suitable than doing
explicit subtractions between pointers to directory entries and kernel
virtual addresses of mapped pages.

Cc: Ira Weiny <ira.weiny@intel.com>
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/sysv/dir.c