Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207569
b: refs/heads/master
c: d640e1b
h: refs/heads/master
i:
  207567: 4f00bae
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent 6d2967b commit 6c1fdf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 62aff86fdf18657d9eca7878654415f94f16d027
refs/heads/master: d640e1b50885b5beb61ccacdebf9f3f05ee2119c
12 changes: 8 additions & 4 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static int ubifs_write_inode(struct inode *inode, struct writeback_control *wbc)
return err;
}

static void ubifs_delete_inode(struct inode *inode)
static void ubifs_evict_inode(struct inode *inode)
{
int err;
struct ubifs_info *c = inode->i_sb->s_fs_info;
Expand All @@ -343,9 +343,12 @@ static void ubifs_delete_inode(struct inode *inode)

dbg_gen("inode %lu, mode %#x", inode->i_ino, (int)inode->i_mode);
ubifs_assert(!atomic_read(&inode->i_count));
ubifs_assert(inode->i_nlink == 0);

truncate_inode_pages(&inode->i_data, 0);

if (inode->i_nlink)
goto done;

if (is_bad_inode(inode))
goto out;

Expand All @@ -367,7 +370,8 @@ static void ubifs_delete_inode(struct inode *inode)
c->nospace = c->nospace_rp = 0;
smp_wmb();
}
clear_inode(inode);
done:
end_writeback(inode);
}

static void ubifs_dirty_inode(struct inode *inode)
Expand Down Expand Up @@ -1824,7 +1828,7 @@ const struct super_operations ubifs_super_operations = {
.destroy_inode = ubifs_destroy_inode,
.put_super = ubifs_put_super,
.write_inode = ubifs_write_inode,
.delete_inode = ubifs_delete_inode,
.evict_inode = ubifs_evict_inode,
.statfs = ubifs_statfs,
.dirty_inode = ubifs_dirty_inode,
.remount_fs = ubifs_remount_fs,
Expand Down

0 comments on commit 6c1fdf5

Please sign in to comment.