forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
8b94025c00
commit
aee5ce2f57
|
@ -719,9 +719,8 @@ static void nilfs_finish_roll_forward(struct the_nilfs *nilfs,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nilfs_recover_logical_segments - salvage logical segments written after
|
* nilfs_salvage_orphan_logs - salvage logs written after the latest checkpoint
|
||||||
* the latest super root
|
* @nilfs: nilfs object
|
||||||
* @nilfs: the_nilfs
|
|
||||||
* @sbi: nilfs_sb_info
|
* @sbi: nilfs_sb_info
|
||||||
* @ri: pointer to a nilfs_recovery_info struct to store search results.
|
* @ri: pointer to a nilfs_recovery_info struct to store search results.
|
||||||
*
|
*
|
||||||
|
@ -738,7 +737,7 @@ static void nilfs_finish_roll_forward(struct the_nilfs *nilfs,
|
||||||
*
|
*
|
||||||
* %-ENOMEM - Insufficient memory available.
|
* %-ENOMEM - Insufficient memory available.
|
||||||
*/
|
*/
|
||||||
int nilfs_recover_logical_segments(struct the_nilfs *nilfs,
|
int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs,
|
||||||
struct nilfs_sb_info *sbi,
|
struct nilfs_sb_info *sbi,
|
||||||
struct nilfs_recovery_info *ri)
|
struct nilfs_recovery_info *ri)
|
||||||
{
|
{
|
||||||
|
|
|
@ -238,7 +238,7 @@ extern int nilfs_read_super_root_block(struct the_nilfs *, sector_t,
|
||||||
struct buffer_head **, int);
|
struct buffer_head **, int);
|
||||||
extern int nilfs_search_super_root(struct the_nilfs *,
|
extern int nilfs_search_super_root(struct the_nilfs *,
|
||||||
struct nilfs_recovery_info *);
|
struct nilfs_recovery_info *);
|
||||||
extern int nilfs_recover_logical_segments(struct the_nilfs *,
|
extern int nilfs_salvage_orphan_logs(struct the_nilfs *,
|
||||||
struct nilfs_sb_info *,
|
struct nilfs_sb_info *,
|
||||||
struct nilfs_recovery_info *);
|
struct nilfs_recovery_info *);
|
||||||
extern void nilfs_dispose_segment_list(struct list_head *);
|
extern void nilfs_dispose_segment_list(struct list_head *);
|
||||||
|
|
|
@ -319,7 +319,7 @@ int load_nilfs(struct the_nilfs *nilfs, struct nilfs_sb_info *sbi)
|
||||||
goto failed_unload;
|
goto failed_unload;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = nilfs_recover_logical_segments(nilfs, sbi, &ri);
|
err = nilfs_salvage_orphan_logs(nilfs, sbi, &ri);
|
||||||
if (err)
|
if (err)
|
||||||
goto failed_unload;
|
goto failed_unload;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user