]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0012d1a3e2dd7e5e56bf8bbc80233dbac9a03f2d
treeaa7b7380285d7806c4e2a6a1080a169e379505d3
parent2ec12c5e585ed3b5b0b8945c7232d4500df17688
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