summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-12-30 22:57:55 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-01-09 17:02:26 -0800
commite1509cf294cc670cda1fedd430f0ff175c42b591 (patch)
tree2278d21b2055970617d70ab5be1eea25584dc76b /fs/f2fs/file.c
parent062920734c0de9dd4f0a9bdc36fdcabc2751eb34 (diff)
downloadop-kernel-dev-e1509cf294cc670cda1fedd430f0ff175c42b591.zip
op-kernel-dev-e1509cf294cc670cda1fedd430f0ff175c42b591.tar.gz
f2fs: clean up to remove parameter
This patch uses dn->data_blkaddr as a parameter for the destination block address. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index f172ddc4..5df3367 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -429,7 +429,8 @@ int truncate_data_blocks_range(struct dnode_of_data *dn, int count)
if (blkaddr == NULL_ADDR)
continue;
- update_extent_cache(NULL_ADDR, dn);
+ dn->data_blkaddr = NULL_ADDR;
+ update_extent_cache(dn);
invalidate_blocks(sbi, blkaddr);
nr_free++;
}
OpenPOWER on IntegriCloud