summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inode.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-28 11:39:06 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-30 10:14:20 -0800
commited3d12561a731b99b58c6c95151291cebf0b3feb (patch)
tree1432e73abf2af1d07a41a6d3ab4e76bb3ea46811 /fs/f2fs/inode.c
parent819d9153d4c87329910a4cb01198610cd24ec62d (diff)
downloadlinux-ed3d12561a731b99b58c6c95151291cebf0b3feb.tar.gz
linux-ed3d12561a731b99b58c6c95151291cebf0b3feb.tar.bz2
linux-ed3d12561a731b99b58c6c95151291cebf0b3feb.zip
f2fs: load largest extent all the time
Otherwise, we can get mismatched largest extent information. One example is: 1. mount f2fs w/ extent_cache 2. make a small extent 3. umount 4. mount f2fs w/o extent_cache 5. update the largest extent 6. umount 7. mount f2fs w/ extent_cache 8. get the old extent made by #2 Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r--fs/f2fs/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index ec3fb32c4726..e95500802daa 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -138,7 +138,8 @@ static int do_read_inode(struct inode *inode)
fi->i_pino = le32_to_cpu(ri->i_pino);
fi->i_dir_level = ri->i_dir_level;
- f2fs_init_extent_tree(inode, &ri->i_ext);
+ if (f2fs_init_extent_tree(inode, &ri->i_ext))
+ set_page_dirty(node_page);
get_inline_info(fi, ri);