ceph: fix dentry reference leak in dcache readdir
authorSage Weil <sage@newdream.net>
Mon, 12 Apr 2010 21:24:28 +0000 (14:24 -0700)
committerSage Weil <sage@newdream.net>
Mon, 12 Apr 2010 21:25:51 +0000 (14:25 -0700)
commitf5b066287c74b624583b993395a65d03a6487b3a
tree113dd2a4bbf0d2ff9fd374b53dc377f55677f922
parent2844a76a25a2fc2f5025cf128c95a14d86146d33
ceph: fix dentry reference leak in dcache readdir

When filldir returned an error (e.g. buffer full for a large directory),
we would leak a dentry reference, causing an oops on umount.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c