Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207576
b: refs/heads/master
c: 4ec70c9
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent bc981da commit 7691593
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 845a2cc0507055278e0fa722ed0f8c791b7401dd
refs/heads/master: 4ec70c9b46b032e7f1b41b543c607d6a33b78a1a
2 changes: 1 addition & 1 deletion trunk/fs/exofs/exofs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down
8 changes: 4 additions & 4 deletions trunk/fs/exofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 (inode->i_nlink || is_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)) {
Expand Down Expand Up @@ -1353,5 +1353,5 @@ void exofs_delete_inode(struct inode *inode)
return;

no_delete:
clear_inode(inode);
end_writeback(inode);
}
2 changes: 1 addition & 1 deletion trunk/fs/exofs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7691593

Please sign in to comment.