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
ea544009
Commit
ea544009
authored
Jun 07, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch hpfs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
33b0daaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
fs/hpfs/hpfs_fn.h
fs/hpfs/hpfs_fn.h
+1
-1
fs/hpfs/inode.c
fs/hpfs/inode.c
+7
-5
fs/hpfs/super.c
fs/hpfs/super.c
+1
-1
No files found.
fs/hpfs/hpfs_fn.h
View file @
ea544009
...
...
@@ -281,7 +281,7 @@ void hpfs_write_inode(struct inode *);
void
hpfs_write_inode_nolock
(
struct
inode
*
);
int
hpfs_setattr
(
struct
dentry
*
,
struct
iattr
*
);
void
hpfs_write_if_changed
(
struct
inode
*
);
void
hpfs_
delete
_inode
(
struct
inode
*
);
void
hpfs_
evict
_inode
(
struct
inode
*
);
/* map.c */
...
...
fs/hpfs/inode.c
View file @
ea544009
...
...
@@ -302,11 +302,13 @@ void hpfs_write_if_changed(struct inode *inode)
hpfs_write_inode
(
inode
);
}
void
hpfs_
delete
_inode
(
struct
inode
*
inode
)
void
hpfs_
evict
_inode
(
struct
inode
*
inode
)
{
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
lock_kernel
();
hpfs_remove_fnode
(
inode
->
i_sb
,
inode
->
i_ino
);
unlock_kernel
();
clear_inode
(
inode
);
end_writeback
(
inode
);
if
(
!
inode
->
i_nlink
)
{
lock_kernel
();
hpfs_remove_fnode
(
inode
->
i_sb
,
inode
->
i_ino
);
unlock_kernel
();
}
}
fs/hpfs/super.c
View file @
ea544009
...
...
@@ -450,7 +450,7 @@ static const struct super_operations hpfs_sops =
{
.
alloc_inode
=
hpfs_alloc_inode
,
.
destroy_inode
=
hpfs_destroy_inode
,
.
delete_inode
=
hpfs_delete
_inode
,
.
evict_inode
=
hpfs_evict
_inode
,
.
put_super
=
hpfs_put_super
,
.
statfs
=
hpfs_statfs
,
.
remount_fs
=
hpfs_remount_fs
,
...
...
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