diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-05-22 23:21:57 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-07-22 21:02:09 -0400 |
commit | aee5ce2f578b98eba16e59cb84d39a95682a836b (patch) | |
tree | fd8b3d254a328f4b6ccf9240515002b0e1f96c88 /fs | |
parent | 8b94025c00f9171b41ba9c1696943f5c935b62ef (diff) |
nilfs2: rename nilfs_recover_logical_segments function
The function name of nilfs_recover_logical_segments makes no sense.
This changes the name into nilfs_salvage_orphan_logs to clarify the
role of the function.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nilfs2/recovery.c | 11 | ||||
-rw-r--r-- | fs/nilfs2/segment.h | 6 | ||||
-rw-r--r-- | fs/nilfs2/the_nilfs.c | 2 |
3 files changed, 9 insertions, 10 deletions
diff --git a/fs/nilfs2/recovery.c b/fs/nilfs2/recovery.c index 1c883b1074eb..fd7fb4149aa7 100644 --- a/fs/nilfs2/recovery.c +++ b/fs/nilfs2/recovery.c | |||
@@ -719,9 +719,8 @@ static void nilfs_finish_roll_forward(struct the_nilfs *nilfs, | |||
719 | } | 719 | } |
720 | 720 | ||
721 | /** | 721 | /** |
722 | * nilfs_recover_logical_segments - salvage logical segments written after | 722 | * nilfs_salvage_orphan_logs - salvage logs written after the latest checkpoint |
723 | * the latest super root | 723 | * @nilfs: nilfs object |
724 | * @nilfs: the_nilfs | ||
725 | * @sbi: nilfs_sb_info | 724 | * @sbi: nilfs_sb_info |
726 | * @ri: pointer to a nilfs_recovery_info struct to store search results. | 725 | * @ri: pointer to a nilfs_recovery_info struct to store search results. |
727 | * | 726 | * |
@@ -738,9 +737,9 @@ static void nilfs_finish_roll_forward(struct the_nilfs *nilfs, | |||
738 | * | 737 | * |
739 | * %-ENOMEM - Insufficient memory available. | 738 | * %-ENOMEM - Insufficient memory available. |
740 | */ | 739 | */ |
741 | int nilfs_recover_logical_segments(struct the_nilfs *nilfs, | 740 | int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, |
742 | struct nilfs_sb_info *sbi, | 741 | struct nilfs_sb_info *sbi, |
743 | struct nilfs_recovery_info *ri) | 742 | struct nilfs_recovery_info *ri) |
744 | { | 743 | { |
745 | int err; | 744 | int err; |
746 | 745 | ||
diff --git a/fs/nilfs2/segment.h b/fs/nilfs2/segment.h index d6bb67ee7bc8..17c487bd8152 100644 --- a/fs/nilfs2/segment.h +++ b/fs/nilfs2/segment.h | |||
@@ -238,9 +238,9 @@ extern int nilfs_read_super_root_block(struct the_nilfs *, sector_t, | |||
238 | struct buffer_head **, int); | 238 | struct buffer_head **, int); |
239 | extern int nilfs_search_super_root(struct the_nilfs *, | 239 | extern int nilfs_search_super_root(struct the_nilfs *, |
240 | struct nilfs_recovery_info *); | 240 | struct nilfs_recovery_info *); |
241 | extern int nilfs_recover_logical_segments(struct the_nilfs *, | 241 | extern int nilfs_salvage_orphan_logs(struct the_nilfs *, |
242 | struct nilfs_sb_info *, | 242 | struct nilfs_sb_info *, |
243 | struct nilfs_recovery_info *); | 243 | struct nilfs_recovery_info *); |
244 | extern void nilfs_dispose_segment_list(struct list_head *); | 244 | extern void nilfs_dispose_segment_list(struct list_head *); |
245 | 245 | ||
246 | #endif /* _NILFS_SEGMENT_H */ | 246 | #endif /* _NILFS_SEGMENT_H */ |
diff --git a/fs/nilfs2/the_nilfs.c b/fs/nilfs2/the_nilfs.c index a94908e4d6d7..9f2cb01994d0 100644 --- a/fs/nilfs2/the_nilfs.c +++ b/fs/nilfs2/the_nilfs.c | |||
@@ -319,7 +319,7 @@ int load_nilfs(struct the_nilfs *nilfs, struct nilfs_sb_info *sbi) | |||
319 | goto failed_unload; | 319 | goto failed_unload; |
320 | } | 320 | } |
321 | 321 | ||
322 | err = nilfs_recover_logical_segments(nilfs, sbi, &ri); | 322 | err = nilfs_salvage_orphan_logs(nilfs, sbi, &ri); |
323 | if (err) | 323 | if (err) |
324 | goto failed_unload; | 324 | goto failed_unload; |
325 | 325 | ||