]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - fs/ceph/dir.c
ceph: document unlocked d_parent accesses
[~shefty/rdma-dev.git] / fs / ceph / dir.c
index 7263f825d426daac2861e123c297bdac8d951c26..852ff8600ac9875a5acf896247fb92485d6a8848 100644 (file)
@@ -506,7 +506,7 @@ int ceph_handle_snapdir(struct ceph_mds_request *req,
                        struct dentry *dentry, int err)
 {
        struct ceph_fs_client *fsc = ceph_sb_to_client(dentry->d_sb);
-       struct inode *parent = dentry->d_parent->d_inode;
+       struct inode *parent = dentry->d_parent->d_inode; /* we hold i_mutex */
 
        /* .snap dir? */
        if (err == -ENOENT &&