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
62aff86f
Commit
62aff86f
authored
Jun 07, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch jfs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ea544009
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
25 deletions
+20
-25
fs/jfs/inode.c
fs/jfs/inode.c
+18
-17
fs/jfs/jfs_inode.h
fs/jfs/jfs_inode.h
+1
-1
fs/jfs/super.c
fs/jfs/super.c
+1
-7
No files found.
fs/jfs/inode.c
View file @
62aff86f
...
...
@@ -145,31 +145,32 @@ int jfs_write_inode(struct inode *inode, struct writeback_control *wbc)
return
0
;
}
void
jfs_
delete
_inode
(
struct
inode
*
inode
)
void
jfs_
evict
_inode
(
struct
inode
*
inode
)
{
jfs_info
(
"In jfs_
delete
_inode, inode = 0x%p"
,
inode
);
jfs_info
(
"In jfs_
evict
_inode, inode = 0x%p"
,
inode
);
if
(
!
i
s_bad_inode
(
inode
))
if
(
!
i
node
->
i_nlink
&&
!
is_bad_inode
(
inode
))
{
dquot_initialize
(
inode
);
if
(
!
is_bad_inode
(
inode
)
&&
(
JFS_IP
(
inode
)
->
fileset
==
FILESYSTEM_I
))
{
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
if
(
JFS_IP
(
inode
)
->
fileset
==
FILESYSTEM_I
)
{
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
if
(
test_cflag
(
COMMIT_Freewmap
,
inode
))
jfs_free_zero_link
(
inode
);
if
(
test_cflag
(
COMMIT_Freewmap
,
inode
))
jfs_free_zero_link
(
inode
);
diFree
(
inode
);
diFree
(
inode
);
/*
* Free the inode from the quota allocation.
*/
dquot_initialize
(
inode
);
dquot_free_inode
(
inode
);
dquot_drop
(
inode
);
/*
* Free the inode from the quota allocation.
*/
dquot_initialize
(
inode
);
dquot_free_inode
(
inode
);
}
}
else
{
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
}
clear_inode
(
inode
);
end_writeback
(
inode
);
dquot_drop
(
inode
);
}
void
jfs_dirty_inode
(
struct
inode
*
inode
)
...
...
fs/jfs/jfs_inode.h
View file @
62aff86f
...
...
@@ -27,7 +27,7 @@ extern long jfs_compat_ioctl(struct file *, unsigned int, unsigned long);
extern
struct
inode
*
jfs_iget
(
struct
super_block
*
,
unsigned
long
);
extern
int
jfs_commit_inode
(
struct
inode
*
,
int
);
extern
int
jfs_write_inode
(
struct
inode
*
,
struct
writeback_control
*
);
extern
void
jfs_
delete
_inode
(
struct
inode
*
);
extern
void
jfs_
evict
_inode
(
struct
inode
*
);
extern
void
jfs_dirty_inode
(
struct
inode
*
);
extern
void
jfs_truncate
(
struct
inode
*
);
extern
void
jfs_truncate_nolock
(
struct
inode
*
,
loff_t
);
...
...
fs/jfs/super.c
View file @
62aff86f
...
...
@@ -132,11 +132,6 @@ static void jfs_destroy_inode(struct inode *inode)
kmem_cache_free
(
jfs_inode_cachep
,
ji
);
}
static
void
jfs_clear_inode
(
struct
inode
*
inode
)
{
dquot_drop
(
inode
);
}
static
int
jfs_statfs
(
struct
dentry
*
dentry
,
struct
kstatfs
*
buf
)
{
struct
jfs_sb_info
*
sbi
=
JFS_SBI
(
dentry
->
d_sb
);
...
...
@@ -765,8 +760,7 @@ static const struct super_operations jfs_super_operations = {
.
destroy_inode
=
jfs_destroy_inode
,
.
dirty_inode
=
jfs_dirty_inode
,
.
write_inode
=
jfs_write_inode
,
.
delete_inode
=
jfs_delete_inode
,
.
clear_inode
=
jfs_clear_inode
,
.
evict_inode
=
jfs_evict_inode
,
.
put_super
=
jfs_put_super
,
.
sync_fs
=
jfs_sync_fs
,
.
freeze_fs
=
jfs_freeze
,
...
...
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