Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

qstr: constify instances in f2fs

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 185de68f ac3ba644

+4 -4
+2 -2
fs/f2fs/dir.c
··· 214 214 * Entry is guaranteed to be valid. 215 215 */ 216 216 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) 218 218 { 219 219 unsigned long npages = dir_blocks(dir); 220 220 struct f2fs_dir_entry *de = NULL; ··· 277 277 return de; 278 278 } 279 279 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) 281 281 { 282 282 ino_t res = 0; 283 283 struct f2fs_dir_entry *de;
+2 -2
fs/f2fs/f2fs.h
··· 1805 1805 void update_parent_metadata(struct inode *, struct inode *, unsigned int); 1806 1806 int room_for_filename(const void *, int, int); 1807 1807 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 *, 1809 1809 struct page **); 1810 1810 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 *); 1812 1812 void f2fs_set_link(struct inode *, struct f2fs_dir_entry *, 1813 1813 struct page *, struct inode *); 1814 1814 int update_dent_inode(struct inode *, struct inode *, const struct qstr *);