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
nexedi
linux
Commits
5e8a0770
Commit
5e8a0770
authored
Apr 10, 2019
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9p: switch to ->free_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
25af6c4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
fs/9p/v9fs_vfs.h
fs/9p/v9fs_vfs.h
+1
-1
fs/9p/vfs_inode.c
fs/9p/vfs_inode.c
+2
-8
fs/9p/vfs_super.c
fs/9p/vfs_super.c
+2
-2
No files found.
fs/9p/v9fs_vfs.h
View file @
5e8a0770
...
...
@@ -58,7 +58,7 @@ extern const struct file_operations v9fs_mmap_file_operations_dotl;
extern
struct
kmem_cache
*
v9fs_inode_cache
;
struct
inode
*
v9fs_alloc_inode
(
struct
super_block
*
sb
);
void
v9fs_
destroy
_inode
(
struct
inode
*
inode
);
void
v9fs_
free
_inode
(
struct
inode
*
inode
);
struct
inode
*
v9fs_get_inode
(
struct
super_block
*
sb
,
umode_t
mode
,
dev_t
);
int
v9fs_init_inode
(
struct
v9fs_session_info
*
v9ses
,
struct
inode
*
inode
,
umode_t
mode
,
dev_t
);
...
...
fs/9p/vfs_inode.c
View file @
5e8a0770
...
...
@@ -253,21 +253,15 @@ struct inode *v9fs_alloc_inode(struct super_block *sb)
}
/**
* v9fs_
destroy
_inode - destroy an inode
* v9fs_
free
_inode - destroy an inode
*
*/
static
void
v9fs_i_callback
(
struct
rcu_head
*
head
)
void
v9fs_free_inode
(
struct
inode
*
inode
)
{
struct
inode
*
inode
=
container_of
(
head
,
struct
inode
,
i_rcu
);
kmem_cache_free
(
v9fs_inode_cache
,
V9FS_I
(
inode
));
}
void
v9fs_destroy_inode
(
struct
inode
*
inode
)
{
call_rcu
(
&
inode
->
i_rcu
,
v9fs_i_callback
);
}
int
v9fs_init_inode
(
struct
v9fs_session_info
*
v9ses
,
struct
inode
*
inode
,
umode_t
mode
,
dev_t
rdev
)
{
...
...
fs/9p/vfs_super.c
View file @
5e8a0770
...
...
@@ -344,7 +344,7 @@ static int v9fs_write_inode_dotl(struct inode *inode,
static
const
struct
super_operations
v9fs_super_ops
=
{
.
alloc_inode
=
v9fs_alloc_inode
,
.
destroy_inode
=
v9fs_destroy
_inode
,
.
free_inode
=
v9fs_free
_inode
,
.
statfs
=
simple_statfs
,
.
evict_inode
=
v9fs_evict_inode
,
.
show_options
=
v9fs_show_options
,
...
...
@@ -354,7 +354,7 @@ static const struct super_operations v9fs_super_ops = {
static
const
struct
super_operations
v9fs_super_ops_dotl
=
{
.
alloc_inode
=
v9fs_alloc_inode
,
.
destroy_inode
=
v9fs_destroy
_inode
,
.
free_inode
=
v9fs_free
_inode
,
.
statfs
=
v9fs_statfs
,
.
drop_inode
=
v9fs_drop_inode
,
.
evict_inode
=
v9fs_evict_inode
,
...
...
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