From: Sage Weil Date: Tue, 26 Jul 2011 18:28:11 +0000 (-0700) Subject: ceph: fix ceph_lookup_open intent usage X-Git-Tag: v3.1-rc1~220^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=468640e32c7f6bfdaaa011095cc388786755d159;p=pandora-kernel.git ceph: fix ceph_lookup_open intent usage We weren't properly calling lookup_instantiate_filp when setting up the lookup intent, which could lead to file leakage on errors. So: - use separate helper for the hidden snapdir translation, immediately following the mds request - use ceph_finish_lookup for the final dentry/return value dance in the exit path - lookup_instantiate_filp on success Reported-by: Al Viro Reviewed-by: Yehuda Sadeh Signed-off-by: Sage Weil --- Reading git-diff-tree failed