Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
4ec70c9b
Commit
4ec70c9b
authored
14 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
convert exofs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
845a2cc0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fs/exofs/exofs.h
+1
-1
1 addition, 1 deletion
fs/exofs/exofs.h
fs/exofs/inode.c
+4
-4
4 additions, 4 deletions
fs/exofs/inode.c
fs/exofs/super.c
+1
-1
1 addition, 1 deletion
fs/exofs/super.c
with
6 additions
and
6 deletions
fs/exofs/exofs.h
+
1
−
1
View file @
4ec70c9b
...
@@ -263,7 +263,7 @@ int exofs_write_begin(struct file *file, struct address_space *mapping,
...
@@ -263,7 +263,7 @@ int exofs_write_begin(struct file *file, struct address_space *mapping,
extern
struct
inode
*
exofs_iget
(
struct
super_block
*
,
unsigned
long
);
extern
struct
inode
*
exofs_iget
(
struct
super_block
*
,
unsigned
long
);
struct
inode
*
exofs_new_inode
(
struct
inode
*
,
int
);
struct
inode
*
exofs_new_inode
(
struct
inode
*
,
int
);
extern
int
exofs_write_inode
(
struct
inode
*
,
struct
writeback_control
*
wbc
);
extern
int
exofs_write_inode
(
struct
inode
*
,
struct
writeback_control
*
wbc
);
extern
void
exofs_
delete
_inode
(
struct
inode
*
);
extern
void
exofs_
evict
_inode
(
struct
inode
*
);
/* dir.c: */
/* dir.c: */
int
exofs_add_link
(
struct
dentry
*
,
struct
inode
*
);
int
exofs_add_link
(
struct
dentry
*
,
struct
inode
*
);
...
...
This diff is collapsed.
Click to expand it.
fs/exofs/inode.c
+
4
−
4
View file @
4ec70c9b
...
@@ -1307,7 +1307,7 @@ static void delete_done(struct exofs_io_state *ios, void *p)
...
@@ -1307,7 +1307,7 @@ static void delete_done(struct exofs_io_state *ios, void *p)
* from the OSD here. We make sure the object was created before we try and
* from the OSD here. We make sure the object was created before we try and
* delete it.
* delete it.
*/
*/
void
exofs_
delete
_inode
(
struct
inode
*
inode
)
void
exofs_
evict
_inode
(
struct
inode
*
inode
)
{
{
struct
exofs_i_info
*
oi
=
exofs_i
(
inode
);
struct
exofs_i_info
*
oi
=
exofs_i
(
inode
);
struct
super_block
*
sb
=
inode
->
i_sb
;
struct
super_block
*
sb
=
inode
->
i_sb
;
...
@@ -1318,11 +1318,11 @@ void exofs_delete_inode(struct inode *inode)
...
@@ -1318,11 +1318,11 @@ void exofs_delete_inode(struct inode *inode)
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
/* TODO: should do better here */
/* TODO: should do better here */
if
(
is_bad_inode
(
inode
))
if
(
inode
->
i_nlink
||
is_bad_inode
(
inode
))
goto
no_delete
;
goto
no_delete
;
inode
->
i_size
=
0
;
inode
->
i_size
=
0
;
clear_inode
(
inode
);
end_writeback
(
inode
);
/* if we are deleting an obj that hasn't been created yet, wait */
/* if we are deleting an obj that hasn't been created yet, wait */
if
(
!
obj_created
(
oi
))
{
if
(
!
obj_created
(
oi
))
{
...
@@ -1353,5 +1353,5 @@ void exofs_delete_inode(struct inode *inode)
...
@@ -1353,5 +1353,5 @@ void exofs_delete_inode(struct inode *inode)
return
;
return
;
no_delete:
no_delete:
clear_inode
(
inode
);
end_writeback
(
inode
);
}
}
This diff is collapsed.
Click to expand it.
fs/exofs/super.c
+
1
−
1
View file @
4ec70c9b
...
@@ -743,7 +743,7 @@ static const struct super_operations exofs_sops = {
...
@@ -743,7 +743,7 @@ static const struct super_operations exofs_sops = {
.
alloc_inode
=
exofs_alloc_inode
,
.
alloc_inode
=
exofs_alloc_inode
,
.
destroy_inode
=
exofs_destroy_inode
,
.
destroy_inode
=
exofs_destroy_inode
,
.
write_inode
=
exofs_write_inode
,
.
write_inode
=
exofs_write_inode
,
.
delete
_inode
=
exofs_
delete
_inode
,
.
evict
_inode
=
exofs_
evict
_inode
,
.
put_super
=
exofs_put_super
,
.
put_super
=
exofs_put_super
,
.
write_super
=
exofs_write_super
,
.
write_super
=
exofs_write_super
,
.
sync_fs
=
exofs_sync_fs
,
.
sync_fs
=
exofs_sync_fs
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment