summaryrefslogtreecommitdiff
path: root/fs/sysv/sysv.h
diff options
context:
space:
mode:
authorFabio M. De Francesco <fmdefrancesco@gmail.com>2023-01-19 18:32:31 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2023-01-20 03:45:43 +0300
commitc26ddc49c9080975cc03cf3bd6917c3fb37d808b (patch)
treef633989c9ee76a0282a06d67a0d1ef8351eb35ee /fs/sysv/sysv.h
parent8dd6c7b2944ce349f06db763d7a2a90a0b83ba0d (diff)
downloadlinux-c26ddc49c9080975cc03cf3bd6917c3fb37d808b.tar.xz
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/sysv.h')
-rw-r--r--fs/sysv/sysv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysv/sysv.h b/fs/sysv/sysv.h
index 99ddf033da4f..b250ac1dd348 100644
--- a/fs/sysv/sysv.h
+++ b/fs/sysv/sysv.h
@@ -148,6 +148,7 @@ extern void sysv_destroy_icache(void);
/* dir.c */
+extern void dir_put_page(struct page *page);
extern struct sysv_dir_entry *sysv_find_entry(struct dentry *, struct page **);
extern int sysv_add_link(struct dentry *, struct inode *);
extern int sysv_delete_entry(struct sysv_dir_entry *, struct page *);