[PATCH] fs/ceph: No need get inode of parent in ceph_open.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);
--
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



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux