[JFFS2][XATTR] Fix memory leak with jffs2_xattr_ref
If xattr_ref is associated with an orphan inode_cache on filesystem mounting, those xattr_refs are not released even if this inode_cache is released. This patch enables to call jffs2_xattr_delete_inode() for such a irregular inode_cachde too. Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
このコミットが含まれているのは:
@@ -165,6 +165,7 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c)
|
||||
D1(printk(KERN_DEBUG "Skipping check of ino #%d with nlink zero\n",
|
||||
ic->ino));
|
||||
spin_unlock(&c->inocache_lock);
|
||||
jffs2_xattr_delete_inode(c, ic);
|
||||
continue;
|
||||
}
|
||||
switch(ic->state) {
|
||||
|
新しいイシューから参照
ユーザーをブロックする