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

qstr: constify instances in ext2

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

Al Viro ac3ba644 b59091c0

+5 -5
+3 -3
fs/ext2/dir.c
··· 358 358 * and the entry itself. Page is returned mapped and unlocked. 359 359 * Entry is guaranteed to be valid. 360 360 */ 361 - struct ext2_dir_entry_2 *ext2_find_entry (struct inode * dir, 362 - struct qstr *child, struct page ** res_page) 361 + struct ext2_dir_entry_2 *ext2_find_entry (struct inode *dir, 362 + const struct qstr *child, struct page **res_page) 363 363 { 364 364 const char *name = child->name; 365 365 int namelen = child->len; ··· 435 435 return de; 436 436 } 437 437 438 - ino_t ext2_inode_by_name(struct inode *dir, struct qstr *child) 438 + ino_t ext2_inode_by_name(struct inode *dir, const struct qstr *child) 439 439 { 440 440 ino_t res = 0; 441 441 struct ext2_dir_entry_2 *de;
+2 -2
fs/ext2/ext2.h
··· 754 754 755 755 /* dir.c */ 756 756 extern int ext2_add_link (struct dentry *, struct inode *); 757 - extern ino_t ext2_inode_by_name(struct inode *, struct qstr *); 757 + extern ino_t ext2_inode_by_name(struct inode *, const struct qstr *); 758 758 extern int ext2_make_empty(struct inode *, struct inode *); 759 - extern struct ext2_dir_entry_2 * ext2_find_entry (struct inode *,struct qstr *, struct page **); 759 + extern struct ext2_dir_entry_2 * ext2_find_entry (struct inode *,const struct qstr *, struct page **); 760 760 extern int ext2_delete_entry (struct ext2_dir_entry_2 *, struct page *); 761 761 extern int ext2_empty_dir (struct inode *); 762 762 extern struct ext2_dir_entry_2 * ext2_dotdot (struct inode *, struct page **);