diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-12-13 20:31:39 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-05-29 11:03:28 +0200 |
commit | dae42837ba6dd441e4a569996d5f62986ffe01ed (patch) | |
tree | 8cfd1c8bf958322fe1389aba4acf67970aa6e87a /fs/ext2/ext2.h | |
parent | 91f646fb971f4401216a2dff5c568bcbce79a923 (diff) | |
download | linux-stable-dae42837ba6dd441e4a569996d5f62986ffe01ed.tar.gz linux-stable-dae42837ba6dd441e4a569996d5f62986ffe01ed.tar.bz2 linux-stable-dae42837ba6dd441e4a569996d5f62986ffe01ed.zip |
ext2_{set_link,delete_entry}(): don't bother with page_addr
ext2_set_link() simply doesn't use it anymore and ext2_delete_entry()
can easily obtain it from the directory entry pointer...
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>
Diffstat (limited to 'fs/ext2/ext2.h')
-rw-r--r-- | fs/ext2/ext2.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index d0531d4ef499..391edf57b944 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h @@ -731,13 +731,11 @@ extern int ext2_inode_by_name(struct inode *dir, extern int ext2_make_empty(struct inode *, struct inode *); extern struct ext2_dir_entry_2 *ext2_find_entry(struct inode *, const struct qstr *, struct page **, void **res_page_addr); -extern int ext2_delete_entry(struct ext2_dir_entry_2 *dir, struct page *page, - char *kaddr); +extern int ext2_delete_entry(struct ext2_dir_entry_2 *dir, struct page *page); extern int ext2_empty_dir (struct inode *); extern struct ext2_dir_entry_2 *ext2_dotdot(struct inode *dir, struct page **p, void **pa); int ext2_set_link(struct inode *dir, struct ext2_dir_entry_2 *de, - struct page *page, void *page_addr, struct inode *inode, - bool update_times); + struct page *page, struct inode *inode, bool update_times); static inline void ext2_put_page(struct page *page, void *page_addr) { kunmap_local(page_addr); |