diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2013-07-15 05:57:38 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-07-30 02:17:02 -0400 |
commit | 4559071063270999d016c92a0b9241692cbbb522 (patch) | |
tree | 06e530ac8b0d5e80c4bd15011f019f666689279b /fs/f2fs/data.c | |
parent | 963d4f7d7be6f9dba77362941921c33034fee91e (diff) |
f2fs: introduce help function F2FS_NODE()
Introduce help function F2FS_NODE() to simplify the conversion of node_page to
f2fs_node.
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 035f9a345cdf..c73c394c3d8c 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c | |||
@@ -39,7 +39,7 @@ static void __set_data_blkaddr(struct dnode_of_data *dn, block_t new_addr) | |||
39 | 39 | ||
40 | wait_on_page_writeback(node_page); | 40 | wait_on_page_writeback(node_page); |
41 | 41 | ||
42 | rn = (struct f2fs_node *)page_address(node_page); | 42 | rn = F2FS_NODE(node_page); |
43 | 43 | ||
44 | /* Get physical address of data block */ | 44 | /* Get physical address of data block */ |
45 | addr_array = blkaddr_in_node(rn); | 45 | addr_array = blkaddr_in_node(rn); |