Skip to content

Commit 185de68

Browse files
author
Al Viro
committed
qstr: constify instances in f2fs
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent ac3ba64 commit 185de68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fs/f2fs/dir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static struct f2fs_dir_entry *find_in_level(struct inode *dir,
214214
* Entry is guaranteed to be valid.
215215
*/
216216
struct 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)
218218
{
219219
unsigned long npages = dir_blocks(dir);
220220
struct f2fs_dir_entry *de = NULL;
@@ -277,7 +277,7 @@ struct f2fs_dir_entry *f2fs_parent_dir(struct inode *dir, struct page **p)
277277
return de;
278278
}
279279

280-
ino_t f2fs_inode_by_name(struct inode *dir, struct qstr *qstr)
280+
ino_t f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr)
281281
{
282282
ino_t res = 0;
283283
struct f2fs_dir_entry *de;

fs/f2fs/f2fs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,10 +1805,10 @@ struct page *init_inode_metadata(struct inode *, struct inode *,
18051805
void update_parent_metadata(struct inode *, struct inode *, unsigned int);
18061806
int room_for_filename(const void *, int, int);
18071807
void f2fs_drop_nlink(struct inode *, struct inode *, struct page *);
1808-
struct f2fs_dir_entry *f2fs_find_entry(struct inode *, struct qstr *,
1808+
struct f2fs_dir_entry *f2fs_find_entry(struct inode *, const struct qstr *,
18091809
struct page **);
18101810
struct f2fs_dir_entry *f2fs_parent_dir(struct inode *, struct page **);
1811-
ino_t f2fs_inode_by_name(struct inode *, struct qstr *);
1811+
ino_t f2fs_inode_by_name(struct inode *, const struct qstr *);
18121812
void f2fs_set_link(struct inode *, struct f2fs_dir_entry *,
18131813
struct page *, struct inode *);
18141814
int update_dent_inode(struct inode *, struct inode *, const struct qstr *);

0 commit comments

Comments
 (0)