diff options
author | Fabio M. De Francesco <fmdefrancesco@gmail.com> | 2023-01-19 16:32:31 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-01-20 01:45:43 +0100 |
commit | c26ddc49c9080975cc03cf3bd6917c3fb37d808b (patch) | |
tree | f633989c9ee76a0282a06d67a0d1ef8351eb35ee /fs/sysv/dir.c | |
parent | fs/sysv: Change the signature of dir_get_page() (diff) | |
download | linux-c26ddc49c9080975cc03cf3bd6917c3fb37d808b.tar.xz linux-c26ddc49c9080975cc03cf3bd6917c3fb37d808b.zip |
fs/sysv: Use dir_put_page() in sysv_rename()
Use the dir_put_page() helper in sysv_rename() instead of open-coding two
kunmap() + put_page().
Cc: Al Viro <viro@zeniv.linux.org.uk>
Suggested-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysv/dir.c')
-rw-r--r-- | fs/sysv/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c index ad334c8ef7b1..6b402e685f1e 100644 --- a/fs/sysv/dir.c +++ b/fs/sysv/dir.c @@ -28,7 +28,7 @@ const struct file_operations sysv_dir_operations = { .fsync = generic_file_fsync, }; -static inline void dir_put_page(struct page *page) +inline void dir_put_page(struct page *page) { kunmap(page); put_page(page); |