ceph: clean up useless d_parent checks
authorSage Weil <sage@inktank.com>
Thu, 7 Jun 2012 20:43:35 +0000 (13:43 -0700)
committerSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 16:29:54 +0000 (09:29 -0700)
commit8842b3be96c376f174ae0d4f282d14728ad5febf
treeaa7b7380285d7806c4e2a6a1080a169e379505d3
parenta2a3258417eb6a1799cf893350771428875a8287
ceph: clean up useless d_parent checks

d_parent is never NULL, and IS_ROOT() is the proper way to check for a
(non-self-referential) parent.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/dir.c
fs/ceph/mds_client.c