From: Sage Weil Date: Tue, 26 Jul 2011 18:30:55 +0000 (-0700) Subject: ceph: avoid d_parent in ceph_dentry_hash; fix ceph_encode_fh() hashing bug X-Git-Tag: v3.1-rc1~220^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5f86dc377e7ff2b4195831153a85a3e76fefff2;p=pandora-kernel.git ceph: avoid d_parent in ceph_dentry_hash; fix ceph_encode_fh() hashing bug Have caller pass in a safely-obtained reference to the parent directory for calculating a dentry's hash valud. While we're here, simpify the flow through ceph_encode_fh() so that there is a single exit point and cleanup. Also fix a bug with the dentry hash calculation: calculate the hash for the dentry we were given, not its parent. Reviewed-by: Yehuda Sadeh Signed-off-by: Sage Weil --- Reading git-diff-tree failed