]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: initialize root dentry
authorSage Weil <sage@newdream.net>
Fri, 11 Nov 2011 17:48:08 +0000 (09:48 -0800)
committerSage Weil <sage@newdream.net>
Fri, 11 Nov 2011 17:50:17 +0000 (09:50 -0800)
commit59834a15957753014d952f557621b11dff6af1a0
tree3c22879278514494e467e651c918994cd6f359d2
parent547ef1e649c5b997d5d35fcaa0498a783c4d785f
ceph: initialize root dentry

Set up d_fsdata on the root dentry.  This fixes a NULL pointer dereference
in ceph_d_prune on umount.  It also means we can eventually strip out all
of the conditional checks on d_fsdata because it is now set unconditionally
(prior to setting up the d_ops).

Fix the ceph_d_prune debug print while we're here.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c
fs/ceph/super.c