summaryrefslogtreecommitdiff
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-02-14 17:44:10 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-03-19 11:41:25 -0700
commita2ced1ce1087a19361b7845c85a2d910fc591344 (patch)
treed0b4b85bcb7532a2f50ec331ce4f6a98706afcb6 /fs/f2fs/node.c
parenta7e679b53393c76d4427f4085ec9d114f06cac5a (diff)
f2fs: clean up codes with {f2fs_,}data_blkaddr()
- rename datablock_addr() to data_blkaddr(). - wrap data_blkaddr() with f2fs_data_blkaddr() to clean up parameters. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 6006802f9220..cc2646794130 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -805,8 +805,7 @@ int f2fs_get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode)
dn->nid = nids[level];
dn->ofs_in_node = offset[level];
dn->node_page = npage[level];
- dn->data_blkaddr = datablock_addr(dn->inode,
- dn->node_page, dn->ofs_in_node);
+ dn->data_blkaddr = f2fs_data_blkaddr(dn);
return 0;
release_pages: