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)
commit4afc31345e5f543e5d89a47aeadaaad1d91a5bc8
tree698cd37b9f285343e2c309a897d566501760bb9f
parent2bfc96a127bc1cc94d26bfaa40159966064f9c8c
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