projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bfc96a
)
nilfs2: fix leak of shadow dat inode in error path of load_nilfs
author
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Sat, 28 Aug 2010 16:55:38 +0000
(
01:55
+0900)
committer
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Mon, 30 Aug 2010 01:18:03 +0000
(10:18 +0900)
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
patch
|
blob
|
history
diff --git
a/fs/nilfs2/the_nilfs.c
b/fs/nilfs2/the_nilfs.c
index
4317f17
..
ba7c10c
100644
(file)
--- a/
fs/nilfs2/the_nilfs.c
+++ b/
fs/nilfs2/the_nilfs.c
@@
-446,6
+446,7
@@
int load_nilfs(struct the_nilfs *nilfs, struct nilfs_sb_info *sbi)
nilfs_mdt_destroy(nilfs->ns_cpfile);
nilfs_mdt_destroy(nilfs->ns_sufile);
nilfs_mdt_destroy(nilfs->ns_dat);
+ nilfs_mdt_destroy(nilfs->ns_gc_dat);
failed:
nilfs_clear_recovery_info(&ri);