summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-22 21:59:54 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-30 19:14:07 +0100
commit93bae099eaa0ae784fbe4d9eddcdc54fb5812466 (patch)
treeceece65bc861d13cc0fe8119715f6b8555111dbb /fs/f2fs/f2fs.h
parentf2fs: avoid unnecessary f2fs_gc for dir operations (diff)
downloadlinux-93bae099eaa0ae784fbe4d9eddcdc54fb5812466.tar.xz
linux-93bae099eaa0ae784fbe4d9eddcdc54fb5812466.zip
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/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 90fb970e2b98..3e4a60da408f 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -546,6 +546,7 @@ struct dnode_of_data {
nid_t nid; /* node id of the direct node block */
unsigned int ofs_in_node; /* data offset in the node page */
bool inode_page_locked; /* inode page is locked or not */
+ bool node_changed; /* is node block changed */
block_t data_blkaddr; /* block address of the node block */
};