diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 196fd4c62db71183a1ba83fe4600e8fb107dadec..099a58615b90f73e29368ffba4793e5a17cb66ae 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -496,6 +496,7 @@ struct dentry *ceph_finish_lookup(struct ceph_mds_request *req, /* .snap dir? */ if (err == -ENOENT && + ceph_snap(parent) == CEPH_NOSNAP && strcmp(dentry->d_name.name, fsc->mount_options->snapdir_name) == 0) { struct inode *inode = ceph_get_snapdir(parent);