summaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-22 23:59:54 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-30 21:14:07 +0300
commit93bae099eaa0ae784fbe4d9eddcdc54fb5812466 (patch)
treeceece65bc861d13cc0fe8119715f6b8555111dbb /fs/f2fs/data.c
parent00623e6bcf40b03b39f612cef9a744453cf3e2a8 (diff)
downloadlinux-93bae099eaa0ae784fbe4d9eddcdc54fb5812466.tar.xz
f2fs: record node block allocation in dnode_of_data
This patch introduces recording node block allocation in dnode_of_data. This information helps to figure out whether any node block is allocated during specific file operations. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index cf0c9dda0365..a7a9a05d012a 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -226,6 +226,7 @@ void set_data_blkaddr(struct dnode_of_data *dn)
addr_array = blkaddr_in_node(rn);
addr_array[ofs_in_node] = cpu_to_le32(dn->data_blkaddr);
set_page_dirty(node_page);
+ dn->node_changed = true;
}
int reserve_new_block(struct dnode_of_data *dn)