f2fs: do not recover i_size if it's valid
If i_size is already valid during roll_forward recovery, we should not update it according to the block alignment. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
281518c694
commit
3a3a5ead7b
|
@ -425,7 +425,7 @@ retry_dn:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((start + 1) << PAGE_SHIFT > i_size_read(inode))
|
if (i_size_read(inode) <= (start << PAGE_SHIFT))
|
||||||
f2fs_i_size_write(inode, (start + 1) << PAGE_SHIFT);
|
f2fs_i_size_write(inode, (start + 1) << PAGE_SHIFT);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue