]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ceph/dir.c
ceph: do not hide .snap in root directory
[net-next-2.6.git] / fs / ceph / dir.c
index a8d2aacc612b99943fb03b86ab1091ce338e5bd0..495825268cb93c3b95beb20ca71f6b6d4bac6d29 100644 (file)
@@ -493,7 +493,6 @@ struct dentry *ceph_finish_lookup(struct ceph_mds_request *req,
 
        /* .snap dir? */
        if (err == -ENOENT &&
-           ceph_vino(parent).ino != CEPH_INO_ROOT && /* no .snap in root dir */
            strcmp(dentry->d_name.name,
                   fsc->mount_options->snapdir_name) == 0) {
                struct inode *inode = ceph_get_snapdir(parent);