ceph: do not chain inode updates to parent fsync
The fsync(dirfd) only covers namespace operations, not inode updates. We do not need to cover setattr variants or O_TRUNC. Reported-by: Al Viro <viro@xeniv.linux.org.uk> Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
@@ -210,7 +210,7 @@ int ceph_open(struct inode *inode, struct file *file)
|
||||
ihold(inode);
|
||||
|
||||
req->r_num_caps = 1;
|
||||
if (flags & (O_CREAT|O_TRUNC))
|
||||
if (flags & O_CREAT)
|
||||
parent_inode = ceph_get_dentry_parent_inode(file->f_dentry);
|
||||
err = ceph_mdsc_do_request(mdsc, parent_inode, req);
|
||||
iput(parent_inode);
|
||||
|
Reference in New Issue
Block a user