diff options
-rw-r--r-- | fs/ext2/dir.c | 6 | ||||
-rw-r--r-- | fs/ext2/ext2.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index 19efd1197fa5..61ad490ed67b 100644 --- a/fs/ext2/dir.c +++ b/fs/ext2/dir.c | |||
@@ -358,8 +358,8 @@ ext2_readdir(struct file *file, struct dir_context *ctx) | |||
358 | * and the entry itself. Page is returned mapped and unlocked. | 358 | * and the entry itself. Page is returned mapped and unlocked. |
359 | * Entry is guaranteed to be valid. | 359 | * Entry is guaranteed to be valid. |
360 | */ | 360 | */ |
361 | struct ext2_dir_entry_2 *ext2_find_entry (struct inode * dir, | 361 | struct ext2_dir_entry_2 *ext2_find_entry (struct inode *dir, |
362 | struct qstr *child, struct page ** res_page) | 362 | const struct qstr *child, struct page **res_page) |
363 | { | 363 | { |
364 | const char *name = child->name; | 364 | const char *name = child->name; |
365 | int namelen = child->len; | 365 | int namelen = child->len; |
@@ -435,7 +435,7 @@ struct ext2_dir_entry_2 * ext2_dotdot (struct inode *dir, struct page **p) | |||
435 | return de; | 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 | ino_t res = 0; | 440 | ino_t res = 0; |
441 | struct ext2_dir_entry_2 *de; | 441 | struct ext2_dir_entry_2 *de; |
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index 170939f379d7..24a270f26bc3 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h | |||
@@ -754,9 +754,9 @@ extern void ext2_rsv_window_add(struct super_block *sb, struct ext2_reserve_wind | |||
754 | 754 | ||
755 | /* dir.c */ | 755 | /* dir.c */ |
756 | extern int ext2_add_link (struct dentry *, struct inode *); | 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 | extern int ext2_make_empty(struct inode *, struct inode *); | 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 | extern int ext2_delete_entry (struct ext2_dir_entry_2 *, struct page *); | 760 | extern int ext2_delete_entry (struct ext2_dir_entry_2 *, struct page *); |
761 | extern int ext2_empty_dir (struct inode *); | 761 | extern int ext2_empty_dir (struct inode *); |
762 | extern struct ext2_dir_entry_2 * ext2_dotdot (struct inode *, struct page **); | 762 | extern struct ext2_dir_entry_2 * ext2_dotdot (struct inode *, struct page **); |