aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-07-26 11:28:11 -0700
committerSage Weil <sage@newdream.net>2011-07-26 11:28:11 -0700
commit468640e32c7f6bfdaaa011095cc388786755d159 (patch)
treebeb059d860c2ca39cda9ca3aa45603025655e1a6 /drivers
parentceph: only link open operations to directory unsafe list if O_CREAT|O_TRUNC (diff)
downloadlinux-dev-468640e32c7f6bfdaaa011095cc388786755d159.tar.xz
linux-dev-468640e32c7f6bfdaaa011095cc388786755d159.zip
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 <viro@ZenIV.linux.org.uk> Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions