aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/f2fs/dir.c4
-rw-r--r--fs/f2fs/f2fs.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index f9313f684540..3b095a35aa47 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -214,7 +214,7 @@ static struct f2fs_dir_entry *find_in_level(struct inode *dir,
214 * Entry is guaranteed to be valid. 214 * Entry is guaranteed to be valid.
215 */ 215 */
216struct f2fs_dir_entry *f2fs_find_entry(struct inode *dir, 216struct f2fs_dir_entry *f2fs_find_entry(struct inode *dir,
217 struct qstr *child, struct page **res_page) 217 const struct qstr *child, struct page **res_page)
218{ 218{
219 unsigned long npages = dir_blocks(dir); 219 unsigned long npages = dir_blocks(dir);
220 struct f2fs_dir_entry *de = NULL; 220 struct f2fs_dir_entry *de = NULL;
@@ -277,7 +277,7 @@ struct f2fs_dir_entry *f2fs_parent_dir(struct inode *dir, struct page **p)
277 return de; 277 return de;
278} 278}
279 279
280ino_t f2fs_inode_by_name(struct inode *dir, struct qstr *qstr) 280ino_t f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr)
281{ 281{
282 ino_t res = 0; 282 ino_t res = 0;
283 struct f2fs_dir_entry *de; 283 struct f2fs_dir_entry *de;
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 916e7c238e3d..fd0a156d7561 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1805,10 +1805,10 @@ struct page *init_inode_metadata(struct inode *, struct inode *,
1805void update_parent_metadata(struct inode *, struct inode *, unsigned int); 1805void update_parent_metadata(struct inode *, struct inode *, unsigned int);
1806int room_for_filename(const void *, int, int); 1806int room_for_filename(const void *, int, int);
1807void f2fs_drop_nlink(struct inode *, struct inode *, struct page *); 1807void f2fs_drop_nlink(struct inode *, struct inode *, struct page *);
1808struct f2fs_dir_entry *f2fs_find_entry(struct inode *, struct qstr *, 1808struct f2fs_dir_entry *f2fs_find_entry(struct inode *, const struct qstr *,
1809 struct page **); 1809 struct page **);
1810struct f2fs_dir_entry *f2fs_parent_dir(struct inode *, struct page **); 1810struct f2fs_dir_entry *f2fs_parent_dir(struct inode *, struct page **);
1811ino_t f2fs_inode_by_name(struct inode *, struct qstr *); 1811ino_t f2fs_inode_by_name(struct inode *, const struct qstr *);
1812void f2fs_set_link(struct inode *, struct f2fs_dir_entry *, 1812void f2fs_set_link(struct inode *, struct f2fs_dir_entry *,
1813 struct page *, struct inode *); 1813 struct page *, struct inode *);
1814int update_dent_inode(struct inode *, struct inode *, const struct qstr *); 1814int update_dent_inode(struct inode *, struct inode *, const struct qstr *);