summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-02-14 10:44:10 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2020-03-19 19:41:25 +0100
commita2ced1ce1087a19361b7845c85a2d910fc591344 (patch)
treed0b4b85bcb7532a2f50ec331ce4f6a98706afcb6 /fs/f2fs/node.c
parentf2fs: show mounted time (diff)
downloadlinux-a2ced1ce1087a19361b7845c85a2d910fc591344.tar.xz
linux-a2ced1ce1087a19361b7845c85a2d910fc591344.zip
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: