ceph: avoid useless dget/dput in encode_fh
authorSage Weil <sage@newdream.net>
Tue, 3 Jan 2012 16:20:40 +0000 (08:20 -0800)
committerSage Weil <sage@newdream.net>
Tue, 10 Jan 2012 16:57:00 +0000 (08:57 -0800)
Nothing we do here sleeps, so just do it under d_lock and avoid the dget/
dput entirely.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Sage Weil <sage@newdream.net>

No differences found