summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorGu Zheng <guz.fnst@cn.fujitsu.com>2013-07-15 17:57:38 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-07-30 15:17:02 +0900
commit4559071063270999d016c92a0b9241692cbbb522 (patch)
tree06e530ac8b0d5e80c4bd15011f019f666689279b /fs/f2fs/dir.c
parent963d4f7d7be6f9dba77362941921c33034fee91e (diff)
downloadblackbird-obmc-linux-4559071063270999d016c92a0b9241692cbbb522.tar.gz
blackbird-obmc-linux-4559071063270999d016c92a0b9241692cbbb522.zip
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/dir.c')
-rw-r--r--fs/f2fs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 62f0d5977c64..89ecb3785321 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -270,7 +270,7 @@ static void init_dent_inode(const struct qstr *name, struct page *ipage)
struct f2fs_node *rn;
/* copy name info. to this inode page */
- rn = (struct f2fs_node *)page_address(ipage);
+ rn = F2FS_NODE(ipage);
rn->i.i_namelen = cpu_to_le32(name->len);
memcpy(rn->i.i_name, name->name, name->len);
set_page_dirty(ipage);
OpenPOWER on IntegriCloud