aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-06-05 09:10:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-14 08:33:16 -0400
commit3819219b592159725069eb16a7a46f58e4ecef32 (patch)
tree607b9fa882ab1f1220aa6576b1436b5bc545c41e /fs/ceph
parentd2c127197dfc0b2bae62a52e1e0d3e3ff493919e (diff)
ceph: remove unused arg from ceph_lookup_open()
What was the purpose of this? Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> CC: Sage Weil <sage@newdream.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/dir.c4
-rw-r--r--fs/ceph/file.c3
-rw-r--r--fs/ceph/super.h3
3 files changed, 4 insertions, 6 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 3e8094be4604..c4b7832c38b5 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -599,7 +599,7 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
599 (nd->flags & LOOKUP_OPEN) && 599 (nd->flags & LOOKUP_OPEN) &&
600 !(nd->intent.open.flags & O_CREAT)) { 600 !(nd->intent.open.flags & O_CREAT)) {
601 int mode = nd->intent.open.create_mode & ~current->fs->umask; 601 int mode = nd->intent.open.create_mode & ~current->fs->umask;
602 return ceph_lookup_open(dir, dentry, nd, mode, 1); 602 return ceph_lookup_open(dir, dentry, nd, mode);
603 } 603 }
604 604
605 /* can we conclude ENOENT locally? */ 605 /* can we conclude ENOENT locally? */
@@ -710,7 +710,7 @@ static int ceph_create(struct inode *dir, struct dentry *dentry, umode_t mode,
710 710
711 if (nd) { 711 if (nd) {
712 BUG_ON((nd->flags & LOOKUP_OPEN) == 0); 712 BUG_ON((nd->flags & LOOKUP_OPEN) == 0);
713 dentry = ceph_lookup_open(dir, dentry, nd, mode, 0); 713 dentry = ceph_lookup_open(dir, dentry, nd, mode);
714 /* hrm, what should i do here if we get aliased? */ 714 /* hrm, what should i do here if we get aliased? */
715 if (IS_ERR(dentry)) 715 if (IS_ERR(dentry))
716 return PTR_ERR(dentry); 716 return PTR_ERR(dentry);
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 988d4f302e48..4bf9773e6a36 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -219,8 +219,7 @@ out:
219 * path_lookup_create -> LOOKUP_OPEN|LOOKUP_CREATE 219 * path_lookup_create -> LOOKUP_OPEN|LOOKUP_CREATE
220 */ 220 */
221struct dentry *ceph_lookup_open(struct inode *dir, struct dentry *dentry, 221struct dentry *ceph_lookup_open(struct inode *dir, struct dentry *dentry,
222 struct nameidata *nd, int mode, 222 struct nameidata *nd, int mode)
223 int locked_dir)
224{ 223{
225 struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); 224 struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb);
226 struct ceph_mds_client *mdsc = fsc->mdsc; 225 struct ceph_mds_client *mdsc = fsc->mdsc;
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index fc35036d258d..8471db98b62c 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -807,8 +807,7 @@ extern int ceph_copy_from_page_vector(struct page **pages,
807extern struct page **ceph_alloc_page_vector(int num_pages, gfp_t flags); 807extern struct page **ceph_alloc_page_vector(int num_pages, gfp_t flags);
808extern int ceph_open(struct inode *inode, struct file *file); 808extern int ceph_open(struct inode *inode, struct file *file);
809extern struct dentry *ceph_lookup_open(struct inode *dir, struct dentry *dentry, 809extern struct dentry *ceph_lookup_open(struct inode *dir, struct dentry *dentry,
810 struct nameidata *nd, int mode, 810 struct nameidata *nd, int mode);
811 int locked_dir);
812extern int ceph_release(struct inode *inode, struct file *filp); 811extern int ceph_release(struct inode *inode, struct file *filp);
813 812
814/* dir.c */ 813/* dir.c */