diff options
author | Sage Weil <sage@newdream.net> | 2011-07-26 20:30:55 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-07-26 20:30:55 +0200 |
commit | e5f86dc377e7ff2b4195831153a85a3e76fefff2 (patch) | |
tree | f15c11fc2c9b08e64555bbb601e582dc8f7325bd /fs/romfs/Makefile | |
parent | ceph: protect d_parent access in ceph_d_revalidate (diff) | |
download | linux-e5f86dc377e7ff2b4195831153a85a3e76fefff2.tar.xz linux-e5f86dc377e7ff2b4195831153a85a3e76fefff2.zip |
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 <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/romfs/Makefile')
0 files changed, 0 insertions, 0 deletions