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
1f895f75
Commit
1f895f75
authored
Jun 05, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch shmem.c to ->evice_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6d8af64c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mm/shmem.c
mm/shmem.c
+4
-4
No files found.
mm/shmem.c
View file @
1f895f75
...
@@ -820,7 +820,7 @@ static int shmem_notify_change(struct dentry *dentry, struct iattr *attr)
...
@@ -820,7 +820,7 @@ static int shmem_notify_change(struct dentry *dentry, struct iattr *attr)
return
error
;
return
error
;
}
}
static
void
shmem_
delete
_inode
(
struct
inode
*
inode
)
static
void
shmem_
evict
_inode
(
struct
inode
*
inode
)
{
{
struct
shmem_inode_info
*
info
=
SHMEM_I
(
inode
);
struct
shmem_inode_info
*
info
=
SHMEM_I
(
inode
);
...
@@ -837,7 +837,7 @@ static void shmem_delete_inode(struct inode *inode)
...
@@ -837,7 +837,7 @@ static void shmem_delete_inode(struct inode *inode)
}
}
BUG_ON
(
inode
->
i_blocks
);
BUG_ON
(
inode
->
i_blocks
);
shmem_free_inode
(
inode
->
i_sb
);
shmem_free_inode
(
inode
->
i_sb
);
clear_inode
(
inode
);
end_writeback
(
inode
);
}
}
static
inline
int
shmem_find_swp
(
swp_entry_t
entry
,
swp_entry_t
*
dir
,
swp_entry_t
*
edir
)
static
inline
int
shmem_find_swp
(
swp_entry_t
entry
,
swp_entry_t
*
dir
,
swp_entry_t
*
edir
)
...
@@ -934,7 +934,7 @@ static int shmem_unuse_inode(struct shmem_inode_info *info, swp_entry_t entry, s
...
@@ -934,7 +934,7 @@ static int shmem_unuse_inode(struct shmem_inode_info *info, swp_entry_t entry, s
/*
/*
* Move _head_ to start search for next from here.
* Move _head_ to start search for next from here.
* But be careful: shmem_
delete
_inode checks list_empty without taking
* But be careful: shmem_
evict
_inode checks list_empty without taking
* mutex, and there's an instant in list_move_tail when info->swaplist
* mutex, and there's an instant in list_move_tail when info->swaplist
* would appear empty, if it were the only one on shmem_swaplist. We
* would appear empty, if it were the only one on shmem_swaplist. We
* could avoid doing it if inode NULL; or use this minor optimization.
* could avoid doing it if inode NULL; or use this minor optimization.
...
@@ -2497,7 +2497,7 @@ static const struct super_operations shmem_ops = {
...
@@ -2497,7 +2497,7 @@ static const struct super_operations shmem_ops = {
.
remount_fs
=
shmem_remount_fs
,
.
remount_fs
=
shmem_remount_fs
,
.
show_options
=
shmem_show_options
,
.
show_options
=
shmem_show_options
,
#endif
#endif
.
delete_inode
=
shmem_delete
_inode
,
.
evict_inode
=
shmem_evict
_inode
,
.
drop_inode
=
generic_delete_inode
,
.
drop_inode
=
generic_delete_inode
,
.
put_super
=
shmem_put_super
,
.
put_super
=
shmem_put_super
,
};
};
...
...
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