Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207552
b: refs/heads/master
c: 69c9e75
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent b9f742e commit 2fdfe9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 9df2f85128def59185f8a1c584f8af41df17405a
refs/heads/master: 69c9e750176b409559b2361fbb28fa7bbf3c5461
9 changes: 6 additions & 3 deletions trunk/fs/omfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,20 @@ int omfs_sync_inode(struct inode *inode)
* called when an entry is deleted, need to clear the bits in the
* bitmaps.
*/
static void omfs_delete_inode(struct inode *inode)
static void omfs_evict_inode(struct inode *inode)
{
truncate_inode_pages(&inode->i_data, 0);
end_writeback(inode);

if (inode->i_nlink)
return;

if (S_ISREG(inode->i_mode)) {
inode->i_size = 0;
omfs_shrink_inode(inode);
}

omfs_clear_range(inode->i_sb, inode->i_ino, 2);
clear_inode(inode);
}

struct inode *omfs_iget(struct super_block *sb, ino_t ino)
Expand Down Expand Up @@ -284,7 +287,7 @@ static int omfs_statfs(struct dentry *dentry, struct kstatfs *buf)

static const struct super_operations omfs_sops = {
.write_inode = omfs_write_inode,
.delete_inode = omfs_delete_inode,
.evict_inode = omfs_evict_inode,
.put_super = omfs_put_super,
.statfs = omfs_statfs,
.show_options = generic_show_options,
Expand Down

0 comments on commit 2fdfe9e

Please sign in to comment.