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
4ec70c9b
Commit
4ec70c9b
authored
Jun 07, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert exofs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
845a2cc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
fs/exofs/exofs.h
fs/exofs/exofs.h
+1
-1
fs/exofs/inode.c
fs/exofs/inode.c
+4
-4
fs/exofs/super.c
fs/exofs/super.c
+1
-1
No files found.
fs/exofs/exofs.h
View file @
4ec70c9b
...
...
@@ -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
);
struct
inode
*
exofs_new_inode
(
struct
inode
*
,
int
);
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: */
int
exofs_add_link
(
struct
dentry
*
,
struct
inode
*
);
...
...
fs/exofs/inode.c
View file @
4ec70c9b
...
...
@@ -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
* 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
super_block
*
sb
=
inode
->
i_sb
;
...
...
@@ -1318,11 +1318,11 @@ void exofs_delete_inode(struct inode *inode)
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
/* TODO: should do better here */
if
(
is_bad_inode
(
inode
))
if
(
i
node
->
i_nlink
||
i
s_bad_inode
(
inode
))
goto
no_delete
;
inode
->
i_size
=
0
;
clear_inode
(
inode
);
end_writeback
(
inode
);
/* if we are deleting an obj that hasn't been created yet, wait */
if
(
!
obj_created
(
oi
))
{
...
...
@@ -1353,5 +1353,5 @@ void exofs_delete_inode(struct inode *inode)
return
;
no_delete:
clear_inode
(
inode
);
end_writeback
(
inode
);
}
fs/exofs/super.c
View file @
4ec70c9b
...
...
@@ -743,7 +743,7 @@ static const struct super_operations exofs_sops = {
.
alloc_inode
=
exofs_alloc_inode
,
.
destroy_inode
=
exofs_destroy_inode
,
.
write_inode
=
exofs_write_inode
,
.
delete_inode
=
exofs_delete
_inode
,
.
evict_inode
=
exofs_evict
_inode
,
.
put_super
=
exofs_put_super
,
.
write_super
=
exofs_write_super
,
.
sync_fs
=
exofs_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