summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-02-25 17:29:54 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 10:07:43 -0800
commit317e13009682d4614ec9ac7c2762eaee26f93ed3 (patch)
tree14878aa0d0bbb8fa0b82f315323bd9a9a32a1666 /fs/f2fs/f2fs.h
parent19f4e688f89a9ce07b86d06d3df23c1cd877ab4e (diff)
downloadlinux-317e13009682d4614ec9ac7c2762eaee26f93ed3.tar.gz
linux-317e13009682d4614ec9ac7c2762eaee26f93ed3.tar.bz2
linux-317e13009682d4614ec9ac7c2762eaee26f93ed3.zip
f2fs: kill __is_extent_same
Since commit ee6d182f2a19 ("f2fs: remove syncing inode page in all the cases") delayed inode element updating from inode cache to node page cache, so once largest cached extent is updated, we can make inode dirty immediately instead of checking and updating it in the end of extent cache update. The above commit didn't clean up unneeded codes in extent_cache.c, let's finish the job in this patch. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 8c0916ae0bea..633f2efc8c17 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -496,13 +496,6 @@ static inline void set_extent_info(struct extent_info *ei, unsigned int fofs,
ei->len = len;
}
-static inline bool __is_extent_same(struct extent_info *ei1,
- struct extent_info *ei2)
-{
- return (ei1->fofs == ei2->fofs && ei1->blk == ei2->blk &&
- ei1->len == ei2->len);
-}
-
static inline bool __is_extent_mergeable(struct extent_info *back,
struct extent_info *front)
{