diff --git a/[refs] b/[refs] index eae3e233bc8b..cd52cbbb5524 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ab226e21ad34f6ef52e00d2ab399d2364b4cdfee +refs/heads/master: 92cf765237e2787eb168096305c448caf25ac7f8 diff --git a/trunk/fs/ceph/dir.c b/trunk/fs/ceph/dir.c index 158c700fdca5..d902948a90d8 100644 --- a/trunk/fs/ceph/dir.c +++ b/trunk/fs/ceph/dir.c @@ -40,7 +40,8 @@ int ceph_init_dentry(struct dentry *dentry) if (dentry->d_fsdata) return 0; - if (ceph_snap(dentry->d_parent->d_inode) == CEPH_NOSNAP) + if (dentry->d_parent == NULL || /* nfs fh_to_dentry */ + ceph_snap(dentry->d_parent->d_inode) == CEPH_NOSNAP) dentry->d_op = &ceph_dentry_ops; else if (ceph_snap(dentry->d_parent->d_inode) == CEPH_SNAPDIR) dentry->d_op = &ceph_snapdir_dentry_ops;