提交 f5b06628 编写于 作者: S Sage Weil

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: NSage Weil <sage@newdream.net>
上级 2844a76a
......@@ -170,11 +170,11 @@ static int __dcache_readdir(struct file *filp,
spin_lock(&inode->i_lock);
spin_lock(&dcache_lock);
last = dentry;
if (err < 0)
goto out_unlock;
last = dentry;
p = p->prev;
filp->f_pos++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册