Skip to content

Commit aee5ce2

Browse files
committed
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>
1 parent 8b94025 commit aee5ce2

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎fs/nilfs2/recovery.c‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,8 @@ static void nilfs_finish_roll_forward(struct the_nilfs *nilfs,
719719
}
720720

721721
/**
722-
* nilfs_recover_logical_segments - salvage logical segments written after
723-
* the latest super root
724-
* @nilfs: the_nilfs
722+
* nilfs_salvage_orphan_logs - salvage logs written after the latest checkpoint
723+
* @nilfs: nilfs object
725724
* @sbi: nilfs_sb_info
726725
* @ri: pointer to a nilfs_recovery_info struct to store search results.
727726
*
@@ -738,9 +737,9 @@ static void nilfs_finish_roll_forward(struct the_nilfs *nilfs,
738737
*
739738
* %-ENOMEM - Insufficient memory available.
740739
*/
741-
int nilfs_recover_logical_segments(struct the_nilfs *nilfs,
742-
struct nilfs_sb_info *sbi,
743-
struct nilfs_recovery_info *ri)
740+
int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs,
741+
struct nilfs_sb_info *sbi,
742+
struct nilfs_recovery_info *ri)
744743
{
745744
int err;
746745

‎fs/nilfs2/segment.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ extern int nilfs_read_super_root_block(struct the_nilfs *, sector_t,
238238
struct buffer_head **, int);
239239
extern int nilfs_search_super_root(struct the_nilfs *,
240240
struct nilfs_recovery_info *);
241-
extern int nilfs_recover_logical_segments(struct the_nilfs *,
242-
struct nilfs_sb_info *,
243-
struct nilfs_recovery_info *);
241+
extern int nilfs_salvage_orphan_logs(struct the_nilfs *,
242+
struct nilfs_sb_info *,
243+
struct nilfs_recovery_info *);
244244
extern void nilfs_dispose_segment_list(struct list_head *);
245245

246246
#endif /* _NILFS_SEGMENT_H */

‎fs/nilfs2/the_nilfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ int load_nilfs(struct the_nilfs *nilfs, struct nilfs_sb_info *sbi)
319319
goto failed_unload;
320320
}
321321

322-
err = nilfs_recover_logical_segments(nilfs, sbi, &ri);
322+
err = nilfs_salvage_orphan_logs(nilfs, sbi, &ri);
323323
if (err)
324324
goto failed_unload;
325325

0 commit comments

Comments
 (0)