]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: fix leak of shadow dat inode in error path of load_nilfs
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 28 Aug 2010 16:55:38 +0000 (01:55 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 30 Aug 2010 01:18:03 +0000 (10:18 +0900)
commit732c16f3171ce5a383d3b0e3c63862f7cb0b04d9
tree698cd37b9f285343e2c309a897d566501760bb9f
parent9ab69c9126494bbcd09e617bb6a99a8f0009a186
nilfs2: fix leak of shadow dat inode in error path of load_nilfs

If load_nilfs() gets an error while doing recovery, it will fail to
free the shadow inode of dat (nilfs->ns_gc_dat).

This fixes the leak issue.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/the_nilfs.c