Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207547
b: refs/heads/master
c: deee3ce
h: refs/heads/master
i:
  207545: 68279af
  207543: 2909d1c
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent 20d1756 commit b3473f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 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: d3b4f9ae184b0a3982dbe000ddf88952f090dc28
refs/heads/master: deee3ce466a3e2cfb54c93b8fd22bbccd19ea7d6
20 changes: 9 additions & 11 deletions trunk/fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static const struct address_space_operations fat_aops = {
* check if the location is still valid and retry if it
* isn't. Otherwise we do changes.
* 5. Spinlock is used to protect hash/unhash/location check/lookup
* 6. fat_clear_inode() unhashes the F-d-c entry.
* 6. fat_evict_inode() unhashes the F-d-c entry.
* 7. lookup() and readdir() do igrab() if they find a F-d-c entry
* and consider negative result as cache miss.
*/
Expand Down Expand Up @@ -448,16 +448,15 @@ struct inode *fat_build_inode(struct super_block *sb,

EXPORT_SYMBOL_GPL(fat_build_inode);

static void fat_delete_inode(struct inode *inode)
static void fat_evict_inode(struct inode *inode)
{
truncate_inode_pages(&inode->i_data, 0);
inode->i_size = 0;
fat_truncate_blocks(inode, 0);
clear_inode(inode);
}

static void fat_clear_inode(struct inode *inode)
{
if (!inode->i_nlink) {
inode->i_size = 0;
fat_truncate_blocks(inode, 0);
}
invalidate_inode_buffers(inode);
end_writeback(inode);
fat_cache_inval_inode(inode);
fat_detach(inode);
}
Expand Down Expand Up @@ -674,12 +673,11 @@ static const struct super_operations fat_sops = {
.alloc_inode = fat_alloc_inode,
.destroy_inode = fat_destroy_inode,
.write_inode = fat_write_inode,
.delete_inode = fat_delete_inode,
.evict_inode = fat_evict_inode,
.put_super = fat_put_super,
.write_super = fat_write_super,
.sync_fs = fat_sync_fs,
.statfs = fat_statfs,
.clear_inode = fat_clear_inode,
.remount_fs = fat_remount,

.show_options = fat_show_options,
Expand Down

0 comments on commit b3473f9

Please sign in to comment.