extent_cache.c (712cba5d87a6c0e980ee5fad45734e189c4d7151) extent_cache.c (7c45729a4d6d1c90879e6c5c2df325c2f6db7191)
1/*
2 * f2fs extent cache support
3 *
4 * Copyright (c) 2015 Motorola Mobility
5 * Copyright (c) 2015 Samsung Electronics
6 * Authors: Jaegeuk Kim <jaegeuk@kernel.org>
7 * Chao Yu <chao2.yu@samsung.com>
8 *

--- 158 unchanged lines hidden (view full) ---

167
168static void __drop_largest_extent(struct inode *inode,
169 pgoff_t fofs, unsigned int len)
170{
171 struct extent_info *largest = &F2FS_I(inode)->extent_tree->largest;
172
173 if (fofs < largest->fofs + largest->len && fofs + len > largest->fofs) {
174 largest->len = 0;
1/*
2 * f2fs extent cache support
3 *
4 * Copyright (c) 2015 Motorola Mobility
5 * Copyright (c) 2015 Samsung Electronics
6 * Authors: Jaegeuk Kim <jaegeuk@kernel.org>
7 * Chao Yu <chao2.yu@samsung.com>
8 *

--- 158 unchanged lines hidden (view full) ---

167
168static void __drop_largest_extent(struct inode *inode,
169 pgoff_t fofs, unsigned int len)
170{
171 struct extent_info *largest = &F2FS_I(inode)->extent_tree->largest;
172
173 if (fofs < largest->fofs + largest->len && fofs + len > largest->fofs) {
174 largest->len = 0;
175 f2fs_mark_inode_dirty_sync(inode);
175 f2fs_mark_inode_dirty_sync(inode, true);
176 }
177}
178
179/* return true, if inode page is changed */
180bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i_ext)
181{
182 struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
183 struct extent_tree *et;

--- 566 unchanged lines hidden ---
176 }
177}
178
179/* return true, if inode page is changed */
180bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i_ext)
181{
182 struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
183 struct extent_tree *et;

--- 566 unchanged lines hidden ---