diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-03-19 19:23:32 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-10 15:08:49 -0700 |
commit | 216a620a7c3d35ae604ba519c99c5cd1ce4dad6e (patch) | |
tree | 19a921c7d4480be6bacd33965b99d3d0b5248330 /fs/f2fs/file.c | |
parent | 368a0e40b5aedb036de3d78333571c8689869490 (diff) | |
download | lwn-216a620a7c3d35ae604ba519c99c5cd1ce4dad6e.tar.gz lwn-216a620a7c3d35ae604ba519c99c5cd1ce4dad6e.zip |
f2fs: split set_data_blkaddr from f2fs_update_extent_cache
Split __set_data_blkaddr from f2fs_update_extent_cache for readability.
Additionally rename __set_data_blkaddr to set_data_blkaddr for exporting.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 39a07a59b134..da1392965424 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -435,6 +435,7 @@ int truncate_data_blocks_range(struct dnode_of_data *dn, int count) continue; dn->data_blkaddr = NULL_ADDR; + set_data_blkaddr(dn); f2fs_update_extent_cache(dn); invalidate_blocks(sbi, blkaddr); if (dn->ofs_in_node == 0 && IS_INODE(dn->node_page)) |