Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207567
b: refs/heads/master
c: ea54400
h: refs/heads/master
i:
  207565: a25f2e6
  207563: 38d189f
  207559: 5430476
  207551: b9f742e
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent 5d4187a commit 4f00bae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 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: 33b0daaa5557e9dadf4c27407fae7d316bab5686
refs/heads/master: ea544009206baa03d606161656618900260b48e5
2 changes: 1 addition & 1 deletion trunk/fs/hpfs/hpfs_fn.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void hpfs_write_inode(struct inode *);
void hpfs_write_inode_nolock(struct inode *);
int hpfs_setattr(struct dentry *, struct iattr *);
void hpfs_write_if_changed(struct inode *);
void hpfs_delete_inode(struct inode *);
void hpfs_evict_inode(struct inode *);

/* map.c */

Expand Down
12 changes: 7 additions & 5 deletions trunk/fs/hpfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,13 @@ void hpfs_write_if_changed(struct inode *inode)
hpfs_write_inode(inode);
}

void hpfs_delete_inode(struct inode *inode)
void hpfs_evict_inode(struct inode *inode)
{
truncate_inode_pages(&inode->i_data, 0);
lock_kernel();
hpfs_remove_fnode(inode->i_sb, inode->i_ino);
unlock_kernel();
clear_inode(inode);
end_writeback(inode);
if (!inode->i_nlink) {
lock_kernel();
hpfs_remove_fnode(inode->i_sb, inode->i_ino);
unlock_kernel();
}
}
2 changes: 1 addition & 1 deletion trunk/fs/hpfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static const struct super_operations hpfs_sops =
{
.alloc_inode = hpfs_alloc_inode,
.destroy_inode = hpfs_destroy_inode,
.delete_inode = hpfs_delete_inode,
.evict_inode = hpfs_evict_inode,
.put_super = hpfs_put_super,
.statfs = hpfs_statfs,
.remount_fs = hpfs_remount_fs,
Expand Down

0 comments on commit 4f00bae

Please sign in to comment.