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
f053ddde
Commit
f053ddde
authored
Jun 06, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch affs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
69c9e750
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
17 deletions
+14
-17
fs/affs/affs.h
fs/affs/affs.h
+1
-2
fs/affs/inode.c
fs/affs/inode.c
+12
-13
fs/affs/super.c
fs/affs/super.c
+1
-2
No files found.
fs/affs/affs.h
View file @
f053ddde
...
@@ -171,8 +171,7 @@ extern int affs_rename(struct inode *old_dir, struct dentry *old_dentry,
...
@@ -171,8 +171,7 @@ extern int affs_rename(struct inode *old_dir, struct dentry *old_dentry,
extern
unsigned
long
affs_parent_ino
(
struct
inode
*
dir
);
extern
unsigned
long
affs_parent_ino
(
struct
inode
*
dir
);
extern
struct
inode
*
affs_new_inode
(
struct
inode
*
dir
);
extern
struct
inode
*
affs_new_inode
(
struct
inode
*
dir
);
extern
int
affs_notify_change
(
struct
dentry
*
dentry
,
struct
iattr
*
attr
);
extern
int
affs_notify_change
(
struct
dentry
*
dentry
,
struct
iattr
*
attr
);
extern
void
affs_delete_inode
(
struct
inode
*
inode
);
extern
void
affs_evict_inode
(
struct
inode
*
inode
);
extern
void
affs_clear_inode
(
struct
inode
*
inode
);
extern
struct
inode
*
affs_iget
(
struct
super_block
*
sb
,
extern
struct
inode
*
affs_iget
(
struct
super_block
*
sb
,
unsigned
long
ino
);
unsigned
long
ino
);
extern
int
affs_write_inode
(
struct
inode
*
inode
,
extern
int
affs_write_inode
(
struct
inode
*
inode
,
...
...
fs/affs/inode.c
View file @
f053ddde
...
@@ -252,23 +252,19 @@ affs_notify_change(struct dentry *dentry, struct iattr *attr)
...
@@ -252,23 +252,19 @@ affs_notify_change(struct dentry *dentry, struct iattr *attr)
}
}
void
void
affs_delete_inode
(
struct
inode
*
inode
)
affs_evict_inode
(
struct
inode
*
inode
)
{
pr_debug
(
"AFFS: delete_inode(ino=%lu, nlink=%u)
\n
"
,
inode
->
i_ino
,
inode
->
i_nlink
);
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
inode
->
i_size
=
0
;
affs_truncate
(
inode
);
clear_inode
(
inode
);
affs_free_block
(
inode
->
i_sb
,
inode
->
i_ino
);
}
void
affs_clear_inode
(
struct
inode
*
inode
)
{
{
unsigned
long
cache_page
;
unsigned
long
cache_page
;
pr_debug
(
"AFFS: evict_inode(ino=%lu, nlink=%u)
\n
"
,
inode
->
i_ino
,
inode
->
i_nlink
);
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
pr_debug
(
"AFFS: clear_inode(ino=%lu, nlink=%u)
\n
"
,
inode
->
i_ino
,
inode
->
i_nlink
);
if
(
!
inode
->
i_nlink
)
{
inode
->
i_size
=
0
;
affs_truncate
(
inode
);
}
invalidate_inode_buffers
(
inode
);
end_writeback
(
inode
);
affs_free_prealloc
(
inode
);
affs_free_prealloc
(
inode
);
cache_page
=
(
unsigned
long
)
AFFS_I
(
inode
)
->
i_lc
;
cache_page
=
(
unsigned
long
)
AFFS_I
(
inode
)
->
i_lc
;
if
(
cache_page
)
{
if
(
cache_page
)
{
...
@@ -280,6 +276,9 @@ affs_clear_inode(struct inode *inode)
...
@@ -280,6 +276,9 @@ affs_clear_inode(struct inode *inode)
affs_brelse
(
AFFS_I
(
inode
)
->
i_ext_bh
);
affs_brelse
(
AFFS_I
(
inode
)
->
i_ext_bh
);
AFFS_I
(
inode
)
->
i_ext_last
=
~
1
;
AFFS_I
(
inode
)
->
i_ext_last
=
~
1
;
AFFS_I
(
inode
)
->
i_ext_bh
=
NULL
;
AFFS_I
(
inode
)
->
i_ext_bh
=
NULL
;
if
(
!
inode
->
i_nlink
)
affs_free_block
(
inode
->
i_sb
,
inode
->
i_ino
);
}
}
struct
inode
*
struct
inode
*
...
...
fs/affs/super.c
View file @
f053ddde
...
@@ -140,8 +140,7 @@ static const struct super_operations affs_sops = {
...
@@ -140,8 +140,7 @@ static const struct super_operations affs_sops = {
.
alloc_inode
=
affs_alloc_inode
,
.
alloc_inode
=
affs_alloc_inode
,
.
destroy_inode
=
affs_destroy_inode
,
.
destroy_inode
=
affs_destroy_inode
,
.
write_inode
=
affs_write_inode
,
.
write_inode
=
affs_write_inode
,
.
delete_inode
=
affs_delete_inode
,
.
evict_inode
=
affs_evict_inode
,
.
clear_inode
=
affs_clear_inode
,
.
put_super
=
affs_put_super
,
.
put_super
=
affs_put_super
,
.
write_super
=
affs_write_super
,
.
write_super
=
affs_write_super
,
.
sync_fs
=
affs_sync_fs
,
.
sync_fs
=
affs_sync_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