Thanks very much zheng. I'll pay more attention to the format of patch.

Jianpeng


> -----Original Message-----
> From: Yan, Zheng [mailto:[email protected]]
> Sent: Tuesday, August 18, 2015 10:36 AM
> To: Ma, Jianpeng
> Cc: Sage Weil; [email protected]
> Subject: Re: [PATCH] fs/ceph: No need get inode of parent in ceph_open.
> 
> 
> > On Aug 17, 2015, at 16:43, Ma, Jianpeng <[email protected]> wrote:
> >
> > For ceph_open, it already get the parent inode. So no need to get again.
> >
> > Signed-off-by: Jianpeng Ma <[email protected]>
> > ---
> > 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
> >

Reply via email to