Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207545
b: refs/heads/master
c: d299ead
h: refs/heads/master
i:
  207543: 2909d1c
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent 1cbc181 commit 68279af
Show file tree
Hide file tree
Showing 3 changed files with 11 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: 1f895f75dc0881592ef21488aac36cfb2b6ca1e3
refs/heads/master: d299eadc098743ea0cfbf9502fb04abf1d39ce36
1 change: 0 additions & 1 deletion trunk/fs/sysv/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ void sysv_free_inode(struct inode * inode)
return;
}
raw_inode = sysv_raw_inode(sb, ino, &bh);
clear_inode(inode);
if (!raw_inode) {
printk("sysv_free_inode: unable to read inode block on device "
"%s\n", inode->i_sb->s_id);
Expand Down
15 changes: 10 additions & 5 deletions trunk/fs/sysv/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,17 @@ int sysv_sync_inode(struct inode *inode)
return __sysv_write_inode(inode, 1);
}

static void sysv_delete_inode(struct inode *inode)
static void sysv_evict_inode(struct inode *inode)
{
truncate_inode_pages(&inode->i_data, 0);
inode->i_size = 0;
sysv_truncate(inode);
sysv_free_inode(inode);
if (!inode->i_nlink) {
inode->i_size = 0;
sysv_truncate(inode);
}
invalidate_inode_buffers(inode);
end_writeback(inode);
if (!inode->i_nlink)
sysv_free_inode(inode);
}

static struct kmem_cache *sysv_inode_cachep;
Expand Down Expand Up @@ -344,7 +349,7 @@ const struct super_operations sysv_sops = {
.alloc_inode = sysv_alloc_inode,
.destroy_inode = sysv_destroy_inode,
.write_inode = sysv_write_inode,
.delete_inode = sysv_delete_inode,
.evict_inode = sysv_evict_inode,
.put_super = sysv_put_super,
.write_super = sysv_write_super,
.sync_fs = sysv_sync_fs,
Expand Down

0 comments on commit 68279af

Please sign in to comment.