projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
281518c
)
f2fs: do not recover i_size if it's valid
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 16 Nov 2016 23:09:48 +0000
(15:09 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 25 Nov 2016 18:16:04 +0000
(10:16 -0800)
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>
fs/f2fs/recovery.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/recovery.c
b/fs/f2fs/recovery.c
index 62523b2175714c09eff2c5fd8bd97f960f78181a..687c176f0b56a9488ef50d1a4b4c80048ecf9169 100644
(file)
--- a/
fs/f2fs/recovery.c
+++ b/
fs/f2fs/recovery.c
@@
-425,7
+425,7
@@
retry_dn:
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);
/*