On 2013年06月28日 13:12, Wang Sheng-Hui wrote:
> The raw_node will take 1 blk itself, and its next blk addr should be +1.
>
> Signed-off-by: Wang Sheng-Hui <[email protected]>
> ---
>   mkfs/f2fs_format.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
> index 06771ff..f00ba04 100644
> --- a/mkfs/f2fs_format.c
> +++ b/mkfs/f2fs_format.c
> @@ -744,7 +744,7 @@ static int f2fs_write_root_inode(void)
>       raw_node->footer.next_blkaddr = cpu_to_le32(
>               le32_to_cpu(super_block.main_blkaddr) +
>               config.cur_seg[CURSEG_HOT_NODE] *
> -            config.blks_per_seg + 1);
> +            config.blks_per_seg) + cpu_to_le32(1);
>
>       raw_node->i.i_mode = cpu_to_le16(0x41ed);
>       raw_node->i.i_links = cpu_to_le32(2);

Sorry, I mislooked the () position. And the origin calculation is right.
Please ignore this patch.

Thanks,
Sheng-Hui

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to