aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r--fs/ceph/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 3e8094be460..c4b7832c38b 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);