diff options
author | Chao Yu <yuchao0@huawei.com> | 2016-05-04 17:19:47 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-07 19:32:29 +0200 |
commit | bd933d4faedf3a79034e67e8032d153bf1afcd83 (patch) | |
tree | 6d6db3c4b4f41a334b73fe0e542a1a7086f8f72f /fs/f2fs/extent_cache.c | |
parent | f2fs: remove unneeded memset when updating xattr (diff) | |
download | linux-bd933d4faedf3a79034e67e8032d153bf1afcd83.tar.xz linux-bd933d4faedf3a79034e67e8032d153bf1afcd83.zip |
f2fs: reuse get_extent_info
Reuse get_extent_info for readability.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/extent_cache.c')
-rw-r--r-- | fs/f2fs/extent_cache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c index c859bb044728..5bfcdb9b69f2 100644 --- a/fs/f2fs/extent_cache.c +++ b/fs/f2fs/extent_cache.c @@ -196,8 +196,7 @@ bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i_ext) if (!i_ext || !i_ext->len) return false; - set_extent_info(&ei, le32_to_cpu(i_ext->fofs), - le32_to_cpu(i_ext->blk), le32_to_cpu(i_ext->len)); + get_extent_info(&ei, i_ext); write_lock(&et->lock); if (atomic_read(&et->node_cnt)) |