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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 75df600ec9b4..81e5e908df9d 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -636,7 +636,7 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
636 636
637struct file *ceph_atomic_open(struct inode *dir, struct dentry *dentry, 637struct file *ceph_atomic_open(struct inode *dir, struct dentry *dentry,
638 struct opendata *od, unsigned flags, umode_t mode, 638 struct opendata *od, unsigned flags, umode_t mode,
639 bool *created) 639 int *opened)
640{ 640{
641 int err; 641 int err;
642 struct dentry *res = NULL; 642 struct dentry *res = NULL;
@@ -650,7 +650,7 @@ struct file *ceph_atomic_open(struct inode *dir, struct dentry *dentry,
650 if (err < 0) 650 if (err < 0)
651 return ERR_PTR(err); 651 return ERR_PTR(err);
652 652
653 return ceph_lookup_open(dir, dentry, od, flags, mode); 653 return ceph_lookup_open(dir, dentry, od, flags, mode, opened);
654 } 654 }
655 655
656 if (d_unhashed(dentry)) { 656 if (d_unhashed(dentry)) {
@@ -668,8 +668,8 @@ struct file *ceph_atomic_open(struct inode *dir, struct dentry *dentry,
668 return NULL; 668 return NULL;
669 } 669 }
670 670
671 *created = true; 671 *opened |= FILE_CREATED;
672 filp = ceph_lookup_open(dir, dentry, od, flags, mode); 672 filp = ceph_lookup_open(dir, dentry, od, flags, mode, opened);
673 dput(res); 673 dput(res);
674 674
675 return filp; 675 return filp;