diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-10 17:13:09 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 08:34:32 -0400 |
commit | 00cd8dd3bf95f2cc8435b4cac01d9995635c6d0b (patch) | |
tree | d44be476ced0317ae79f28853734ebe2210ad38e /include | |
parent | 201f956e43d4542723514e024d948011dd766d43 (diff) |
stop passing nameidata to ->lookup()
Just the flags; only NFS cares even about that, but there are
legitimate uses for such argument. And getting rid of that
completely would require splitting ->lookup() into a couple
of methods (at least), so let's leave that alone for now...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 17ee20dba86c..7a71709b7fa7 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1666,7 +1666,7 @@ struct file_operations { | |||
1666 | }; | 1666 | }; |
1667 | 1667 | ||
1668 | struct inode_operations { | 1668 | struct inode_operations { |
1669 | struct dentry * (*lookup) (struct inode *,struct dentry *, struct nameidata *); | 1669 | struct dentry * (*lookup) (struct inode *,struct dentry *, unsigned int); |
1670 | void * (*follow_link) (struct dentry *, struct nameidata *); | 1670 | void * (*follow_link) (struct dentry *, struct nameidata *); |
1671 | int (*permission) (struct inode *, int); | 1671 | int (*permission) (struct inode *, int); |
1672 | struct posix_acl * (*get_acl)(struct inode *, int); | 1672 | struct posix_acl * (*get_acl)(struct inode *, int); |
@@ -2571,7 +2571,7 @@ extern int simple_write_end(struct file *file, struct address_space *mapping, | |||
2571 | loff_t pos, unsigned len, unsigned copied, | 2571 | loff_t pos, unsigned len, unsigned copied, |
2572 | struct page *page, void *fsdata); | 2572 | struct page *page, void *fsdata); |
2573 | 2573 | ||
2574 | extern struct dentry *simple_lookup(struct inode *, struct dentry *, struct nameidata *); | 2574 | extern struct dentry *simple_lookup(struct inode *, struct dentry *, unsigned int flags); |
2575 | extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *); | 2575 | extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *); |
2576 | extern const struct file_operations simple_dir_operations; | 2576 | extern const struct file_operations simple_dir_operations; |
2577 | extern const struct inode_operations simple_dir_inode_operations; | 2577 | extern const struct inode_operations simple_dir_inode_operations; |