aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/recovery.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-08-14 00:07:15 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-10-22 20:24:35 -0400
commite912a5b66837ee89fb025e67b5efeaa11930c2ce (patch)
tree46209cdf7417863024131ff54f56120e43ae7a7b /fs/nilfs2/recovery.c
parent8e656fd518784b49453f60c5f78b78703bc85cb2 (diff)
nilfs2: use root object to get ifile
This rewrites functions using ifile so that they get ifile from nilfs_root object, and will remove sbi->s_ifile. Some functions that don't know the root object are extended to receive it from caller. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/recovery.c')
-rw-r--r--fs/nilfs2/recovery.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nilfs2/recovery.c b/fs/nilfs2/recovery.c
index a9a5ba8f57d5..dcb5a9812c6c 100644
--- a/fs/nilfs2/recovery.c
+++ b/fs/nilfs2/recovery.c
@@ -773,7 +773,7 @@ int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs,
773 goto failed; 773 goto failed;
774 } 774 }
775 775
776 err = nilfs_attach_segment_constructor(sbi); 776 err = nilfs_attach_segment_constructor(sbi, root);
777 if (unlikely(err)) 777 if (unlikely(err))
778 goto failed; 778 goto failed;
779 779
@@ -791,7 +791,6 @@ int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs,
791 } 791 }
792 792
793 failed: 793 failed:
794 nilfs_detach_checkpoint(sbi);
795 nilfs_put_root(root); 794 nilfs_put_root(root);
796 return err; 795 return err;
797} 796}