> On Aug 17, 2015, at 16:43, Ma, Jianpeng <jianpeng.ma@xxxxxxxxx> wrote: > > For ceph_open, it already get the parent inode. So no need to get again. > > Signed-off-by: Jianpeng Ma <jianpeng.ma@xxxxxxxxx> > --- > fs/ceph/file.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/fs/ceph/file.c b/fs/ceph/file.c > index 8b79d87..5ecd3dc 100644 > --- a/fs/ceph/file.c > +++ b/fs/ceph/file.c > @@ -210,10 +210,7 @@ int ceph_open(struct inode *inode, struct file *file) > ihold(inode); > > req->r_num_caps = 1; > - if (flags & O_CREAT) > - parent_inode = ceph_get_dentry_parent_inode(file->f_path.dentry); > err = ceph_mdsc_do_request(mdsc, parent_inode, req); > - iput(parent_inode); > if (!err) > err = ceph_init_file(inode, file, req->r_fmode); > ceph_mdsc_put_request(req); > — I fixed your patches (all tabs are replaced by spaces in your patches) and added them to our testing branch Thanks Yan, Zheng > 2.4.3 > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html