diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-25 16:04:58 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-08 02:55:03 -0500 |
| commit | c004363dd6aa89f1ccbebd694f261f86db0c840a (patch) | |
| tree | ec3dcc82d1d5b539273f600e24ebb9c3aeeada9d | |
| parent | 53dc9a67769d0a9733adb5156adfc07edcbc1ea3 (diff) | |
f2fs: switch new_inode_page() from dentry to qstr
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/f2fs/dir.c | 2 | ||||
| -rw-r--r-- | fs/f2fs/f2fs.h | 2 | ||||
| -rw-r--r-- | fs/f2fs/node.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 51332291b4bd..ca7948a2770d 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c | |||
| @@ -287,7 +287,7 @@ static int init_inode_metadata(struct inode *inode, struct dentry *dentry) | |||
| 287 | 287 | ||
| 288 | if (is_inode_flag_set(F2FS_I(inode), FI_NEW_INODE)) { | 288 | if (is_inode_flag_set(F2FS_I(inode), FI_NEW_INODE)) { |
| 289 | int err; | 289 | int err; |
| 290 | err = new_inode_page(inode, dentry); | 290 | err = new_inode_page(inode, &dentry->d_name); |
| 291 | if (err) | 291 | if (err) |
| 292 | return err; | 292 | return err; |
| 293 | 293 | ||
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 732862596311..bfdc10741ff1 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
| @@ -894,7 +894,7 @@ void get_node_info(struct f2fs_sb_info *, nid_t, struct node_info *); | |||
| 894 | int get_dnode_of_data(struct dnode_of_data *, pgoff_t, int); | 894 | int get_dnode_of_data(struct dnode_of_data *, pgoff_t, int); |
| 895 | int truncate_inode_blocks(struct inode *, pgoff_t); | 895 | int truncate_inode_blocks(struct inode *, pgoff_t); |
| 896 | int remove_inode_page(struct inode *); | 896 | int remove_inode_page(struct inode *); |
| 897 | int new_inode_page(struct inode *, struct dentry *); | 897 | int new_inode_page(struct inode *, const struct qstr *); |
| 898 | struct page *new_node_page(struct dnode_of_data *, unsigned int); | 898 | struct page *new_node_page(struct dnode_of_data *, unsigned int); |
| 899 | void ra_node_page(struct f2fs_sb_info *, nid_t); | 899 | void ra_node_page(struct f2fs_sb_info *, nid_t); |
| 900 | struct page *get_node_page(struct f2fs_sb_info *, pgoff_t); | 900 | struct page *get_node_page(struct f2fs_sb_info *, pgoff_t); |
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 5caa94676f60..6625ca819716 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c | |||
| @@ -780,7 +780,7 @@ int remove_inode_page(struct inode *inode) | |||
| 780 | return 0; | 780 | return 0; |
| 781 | } | 781 | } |
| 782 | 782 | ||
| 783 | int new_inode_page(struct inode *inode, struct dentry *dentry) | 783 | int new_inode_page(struct inode *inode, const struct qstr *name) |
| 784 | { | 784 | { |
| 785 | struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); | 785 | struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); |
| 786 | struct page *page; | 786 | struct page *page; |
| @@ -790,7 +790,7 @@ int new_inode_page(struct inode *inode, struct dentry *dentry) | |||
| 790 | set_new_dnode(&dn, inode, NULL, NULL, inode->i_ino); | 790 | set_new_dnode(&dn, inode, NULL, NULL, inode->i_ino); |
| 791 | mutex_lock_op(sbi, NODE_NEW); | 791 | mutex_lock_op(sbi, NODE_NEW); |
| 792 | page = new_node_page(&dn, 0); | 792 | page = new_node_page(&dn, 0); |
| 793 | init_dent_inode(&dentry->d_name, page); | 793 | init_dent_inode(name, page); |
| 794 | mutex_unlock_op(sbi, NODE_NEW); | 794 | mutex_unlock_op(sbi, NODE_NEW); |
| 795 | if (IS_ERR(page)) | 795 | if (IS_ERR(page)) |
| 796 | return PTR_ERR(page); | 796 | return PTR_ERR(page); |
