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
69c9e750
Commit
69c9e750
authored
Jun 06, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch omfs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9df2f851
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
fs/omfs/inode.c
fs/omfs/inode.c
+6
-3
No files found.
fs/omfs/inode.c
View file @
69c9e750
...
...
@@ -175,9 +175,13 @@ int omfs_sync_inode(struct inode *inode)
* called when an entry is deleted, need to clear the bits in the
* bitmaps.
*/
static
void
omfs_
delete
_inode
(
struct
inode
*
inode
)
static
void
omfs_
evict
_inode
(
struct
inode
*
inode
)
{
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
end_writeback
(
inode
);
if
(
inode
->
i_nlink
)
return
;
if
(
S_ISREG
(
inode
->
i_mode
))
{
inode
->
i_size
=
0
;
...
...
@@ -185,7 +189,6 @@ static void omfs_delete_inode(struct inode *inode)
}
omfs_clear_range
(
inode
->
i_sb
,
inode
->
i_ino
,
2
);
clear_inode
(
inode
);
}
struct
inode
*
omfs_iget
(
struct
super_block
*
sb
,
ino_t
ino
)
...
...
@@ -284,7 +287,7 @@ static int omfs_statfs(struct dentry *dentry, struct kstatfs *buf)
static
const
struct
super_operations
omfs_sops
=
{
.
write_inode
=
omfs_write_inode
,
.
delete_inode
=
omfs_delete
_inode
,
.
evict_inode
=
omfs_evict
_inode
,
.
put_super
=
omfs_put_super
,
.
statfs
=
omfs_statfs
,
.
show_options
=
generic_show_options
,
...
...
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