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
deee3ce4
Commit
deee3ce4
authored
Jun 05, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
covert fatfs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d3b4f9ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
fs/fat/inode.c
fs/fat/inode.c
+9
-11
No files found.
fs/fat/inode.c
View file @
deee3ce4
...
...
@@ -263,7 +263,7 @@ static const struct address_space_operations fat_aops = {
* check if the location is still valid and retry if it
* isn't. Otherwise we do changes.
* 5. Spinlock is used to protect hash/unhash/location check/lookup
* 6. fat_
clear
_inode() unhashes the F-d-c entry.
* 6. fat_
evict
_inode() unhashes the F-d-c entry.
* 7. lookup() and readdir() do igrab() if they find a F-d-c entry
* and consider negative result as cache miss.
*/
...
...
@@ -448,16 +448,15 @@ struct inode *fat_build_inode(struct super_block *sb,
EXPORT_SYMBOL_GPL
(
fat_build_inode
);
static
void
fat_
delete
_inode
(
struct
inode
*
inode
)
static
void
fat_
evict
_inode
(
struct
inode
*
inode
)
{
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
inode
->
i_size
=
0
;
fat_truncate_blocks
(
inode
,
0
);
clear_inode
(
inode
);
}
static
void
fat_clear_inode
(
struct
inode
*
inode
)
{
if
(
!
inode
->
i_nlink
)
{
inode
->
i_size
=
0
;
fat_truncate_blocks
(
inode
,
0
);
}
invalidate_inode_buffers
(
inode
);
end_writeback
(
inode
);
fat_cache_inval_inode
(
inode
);
fat_detach
(
inode
);
}
...
...
@@ -674,12 +673,11 @@ static const struct super_operations fat_sops = {
.
alloc_inode
=
fat_alloc_inode
,
.
destroy_inode
=
fat_destroy_inode
,
.
write_inode
=
fat_write_inode
,
.
delete_inode
=
fat_delete
_inode
,
.
evict_inode
=
fat_evict
_inode
,
.
put_super
=
fat_put_super
,
.
write_super
=
fat_write_super
,
.
sync_fs
=
fat_sync_fs
,
.
statfs
=
fat_statfs
,
.
clear_inode
=
fat_clear_inode
,
.
remount_fs
=
fat_remount
,
.
show_options
=
fat_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