]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: switch new_inode_page() from dentry to qstr
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Jan 2013 21:04:58 +0000 (16:04 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Feb 2013 07:55:03 +0000 (02:55 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/node.c

index 51332291b4bdafe06976d8850b149d7482e7e125..ca7948a2770d1c872d3add8a85d6642607380cbe 100644 (file)
@@ -287,7 +287,7 @@ static int init_inode_metadata(struct inode *inode, struct dentry *dentry)
 
        if (is_inode_flag_set(F2FS_I(inode), FI_NEW_INODE)) {
                int err;
-               err = new_inode_page(inode, dentry);
+               err = new_inode_page(inode, &dentry->d_name);
                if (err)
                        return err;
 
index 732862596311e1e2de1839e156770dfdccd7ba20..bfdc10741ff13e55c664e106fb71ec15f5688198 100644 (file)
@@ -894,7 +894,7 @@ void get_node_info(struct f2fs_sb_info *, nid_t, struct node_info *);
 int get_dnode_of_data(struct dnode_of_data *, pgoff_t, int);
 int truncate_inode_blocks(struct inode *, pgoff_t);
 int remove_inode_page(struct inode *);
-int new_inode_page(struct inode *, struct dentry *);
+int new_inode_page(struct inode *, const struct qstr *);
 struct page *new_node_page(struct dnode_of_data *, unsigned int);
 void ra_node_page(struct f2fs_sb_info *, nid_t);
 struct page *get_node_page(struct f2fs_sb_info *, pgoff_t);
index 5caa94676f6038a999db3d1b9bfcbc1357ff845c..6625ca8197164d091b6d6a2fe3a18ecaf074cfc1 100644 (file)
@@ -780,7 +780,7 @@ int remove_inode_page(struct inode *inode)
        return 0;
 }
 
-int new_inode_page(struct inode *inode, struct dentry *dentry)
+int new_inode_page(struct inode *inode, const struct qstr *name)
 {
        struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
        struct page *page;
@@ -790,7 +790,7 @@ int new_inode_page(struct inode *inode, struct dentry *dentry)
        set_new_dnode(&dn, inode, NULL, NULL, inode->i_ino);
        mutex_lock_op(sbi, NODE_NEW);
        page = new_node_page(&dn, 0);
-       init_dent_inode(&dentry->d_name, page);
+       init_dent_inode(name, page);
        mutex_unlock_op(sbi, NODE_NEW);
        if (IS_ERR(page))
                return PTR_ERR(page);