Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c004363d
Commit
c004363d
authored
Jan 25, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f2fs: switch new_inode_page() from dentry to qstr
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
53dc9a67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fs/f2fs/dir.c
fs/f2fs/dir.c
+1
-1
fs/f2fs/f2fs.h
fs/f2fs/f2fs.h
+1
-1
fs/f2fs/node.c
fs/f2fs/node.c
+2
-2
No files found.
fs/f2fs/dir.c
View file @
c004363d
...
@@ -287,7 +287,7 @@ static int init_inode_metadata(struct inode *inode, struct dentry *dentry)
...
@@ -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
))
{
if
(
is_inode_flag_set
(
F2FS_I
(
inode
),
FI_NEW_INODE
))
{
int
err
;
int
err
;
err
=
new_inode_page
(
inode
,
dentry
);
err
=
new_inode_page
(
inode
,
&
dentry
->
d_name
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
...
...
fs/f2fs/f2fs.h
View file @
c004363d
...
@@ -894,7 +894,7 @@ void get_node_info(struct f2fs_sb_info *, nid_t, struct node_info *);
...
@@ -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
get_dnode_of_data
(
struct
dnode_of_data
*
,
pgoff_t
,
int
);
int
truncate_inode_blocks
(
struct
inode
*
,
pgoff_t
);
int
truncate_inode_blocks
(
struct
inode
*
,
pgoff_t
);
int
remove_inode_page
(
struct
inode
*
);
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
);
struct
page
*
new_node_page
(
struct
dnode_of_data
*
,
unsigned
int
);
void
ra_node_page
(
struct
f2fs_sb_info
*
,
nid_t
);
void
ra_node_page
(
struct
f2fs_sb_info
*
,
nid_t
);
struct
page
*
get_node_page
(
struct
f2fs_sb_info
*
,
pgoff_t
);
struct
page
*
get_node_page
(
struct
f2fs_sb_info
*
,
pgoff_t
);
...
...
fs/f2fs/node.c
View file @
c004363d
...
@@ -780,7 +780,7 @@ int remove_inode_page(struct inode *inode)
...
@@ -780,7 +780,7 @@ int remove_inode_page(struct inode *inode)
return
0
;
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
f2fs_sb_info
*
sbi
=
F2FS_SB
(
inode
->
i_sb
);
struct
page
*
page
;
struct
page
*
page
;
...
@@ -790,7 +790,7 @@ int new_inode_page(struct inode *inode, struct dentry *dentry)
...
@@ -790,7 +790,7 @@ int new_inode_page(struct inode *inode, struct dentry *dentry)
set_new_dnode
(
&
dn
,
inode
,
NULL
,
NULL
,
inode
->
i_ino
);
set_new_dnode
(
&
dn
,
inode
,
NULL
,
NULL
,
inode
->
i_ino
);
mutex_lock_op
(
sbi
,
NODE_NEW
);
mutex_lock_op
(
sbi
,
NODE_NEW
);
page
=
new_node_page
(
&
dn
,
0
);
page
=
new_node_page
(
&
dn
,
0
);
init_dent_inode
(
&
dentry
->
d_
name
,
page
);
init_dent_inode
(
name
,
page
);
mutex_unlock_op
(
sbi
,
NODE_NEW
);
mutex_unlock_op
(
sbi
,
NODE_NEW
);
if
(
IS_ERR
(
page
))
if
(
IS_ERR
(
page
))
return
PTR_ERR
(
page
);
return
PTR_ERR
(
page
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment