Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 147738 Details for
Bug 215486
net-fs/shfs-0.35-r4 broken on 2.6.24.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
inode patch
inode.c.patch (text/plain), 1.33 KB, created by
Torsten Krah
on 2008-03-30 20:05:52 UTC
(
hide
)
Description:
inode patch
Filename:
MIME Type:
Creator:
Torsten Krah
Created:
2008-03-30 20:05:52 UTC
Size:
1.33 KB
patch
obsolete
>--- shfs/Linux-2.6/inode.c.orig 2008-03-30 21:23:04.791615003 +0200 >+++ shfs/Linux-2.6/inode.c 2008-03-30 21:18:52.000000000 +0200 >@@ -30,7 +30,7 @@ > unsigned long alloc; > #endif > >-kmem_cache_t *inode_cache = NULL; >+struct kmem_cache *inode_cache = NULL; > > void > shfs_set_inode_attr(struct inode *inode, struct shfs_fattr *fattr) >@@ -67,7 +67,7 @@ > > if (!timespec_equal(&inode->i_mtime, &last_time) || inode->i_size != last_size) { > 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); >- invalidate_inode_pages(inode->i_mapping); >+ invalidate_mapping_pages(inode->i_mapping, 0, -1); > fcache_file_clear(inode); > } > } >@@ -176,7 +176,7 @@ > * But we do want to invalidate the caches ... > */ > if (!S_ISDIR(inode->i_mode)) >- invalidate_inode_pages(inode->i_mapping); >+ invalidate_mapping_pages(inode->i_mapping, 0, -1); > else > shfs_invalid_dir_cache(inode); > result = -EIO; >@@ -387,7 +387,7 @@ > { > printk(KERN_NOTICE "SHell File System, (c) 2002-2004 Miroslav Spousta\n"); > fcache_init(); >- inode_cache = kmem_cache_create("shfs_inode", sizeof(struct shfs_inode_info), 0, 0, NULL, NULL); >+ inode_cache = kmem_cache_create("shfs_inode", sizeof(struct shfs_inode_info), 0, SLAB_HWCACHE_ALIGN, NULL); > > debug_level = 0; > #ifdef ENABLE_DEBUG
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 215486
:
147736
|
147737
| 147738 |
147740
|
147742