Lines 30-36
Link Here
|
30 |
unsigned long alloc; |
30 |
unsigned long alloc; |
31 |
#endif |
31 |
#endif |
32 |
|
32 |
|
33 |
kmem_cache_t *inode_cache = NULL; |
33 |
struct kmem_cache *inode_cache = NULL; |
34 |
|
34 |
|
35 |
void |
35 |
void |
36 |
shfs_set_inode_attr(struct inode *inode, struct shfs_fattr *fattr) |
36 |
shfs_set_inode_attr(struct inode *inode, struct shfs_fattr *fattr) |
Lines 67-73
Link Here
|
67 |
|
67 |
|
68 |
if (!timespec_equal(&inode->i_mtime, &last_time) || inode->i_size != last_size) { |
68 |
if (!timespec_equal(&inode->i_mtime, &last_time) || inode->i_size != last_size) { |
69 |
DEBUG("inode changed (%ld/%ld, %lu/%lu)\n", inode->i_mtime.tv_sec, last_time.tv_sec, (unsigned long)inode->i_size, (unsigned long)last_size); |
69 |
DEBUG("inode changed (%ld/%ld, %lu/%lu)\n", inode->i_mtime.tv_sec, last_time.tv_sec, (unsigned long)inode->i_size, (unsigned long)last_size); |
70 |
invalidate_inode_pages(inode->i_mapping); |
70 |
invalidate_mapping_pages(inode->i_mapping, 0, -1); |
71 |
fcache_file_clear(inode); |
71 |
fcache_file_clear(inode); |
72 |
} |
72 |
} |
73 |
} |
73 |
} |
Lines 176-182
Link Here
|
176 |
* But we do want to invalidate the caches ... |
176 |
* But we do want to invalidate the caches ... |
177 |
*/ |
177 |
*/ |
178 |
if (!S_ISDIR(inode->i_mode)) |
178 |
if (!S_ISDIR(inode->i_mode)) |
179 |
invalidate_inode_pages(inode->i_mapping); |
179 |
invalidate_mapping_pages(inode->i_mapping, 0, -1); |
180 |
else |
180 |
else |
181 |
shfs_invalid_dir_cache(inode); |
181 |
shfs_invalid_dir_cache(inode); |
182 |
result = -EIO; |
182 |
result = -EIO; |
Lines 387-393
Link Here
|
387 |
{ |
387 |
{ |
388 |
printk(KERN_NOTICE "SHell File System, (c) 2002-2004 Miroslav Spousta\n"); |
388 |
printk(KERN_NOTICE "SHell File System, (c) 2002-2004 Miroslav Spousta\n"); |
389 |
fcache_init(); |
389 |
fcache_init(); |
390 |
inode_cache = kmem_cache_create("shfs_inode", sizeof(struct shfs_inode_info), 0, 0, NULL, NULL); |
390 |
inode_cache = kmem_cache_create("shfs_inode", sizeof(struct shfs_inode_info), 0, SLAB_HWCACHE_ALIGN, NULL); |
391 |
|
391 |
|
392 |
debug_level = 0; |
392 |
debug_level = 0; |
393 |
#ifdef ENABLE_DEBUG |
393 |
#ifdef ENABLE_DEBUG |