Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 130139 Details for
Bug 177010
net-fs/zfs-fuse - Zettabyte File System FUSE implementation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
zfs-fuse-0.4.0_beta1-no_prefetch.patch
zfs-fuse-0.4.0_beta1-no_prefetch.patch (text/plain), 1.40 KB, created by
Ingo Bormuth
on 2007-09-06 06:14:49 UTC
(
hide
)
Description:
zfs-fuse-0.4.0_beta1-no_prefetch.patch
Filename:
MIME Type:
Creator:
Ingo Bormuth
Created:
2007-09-06 06:14:49 UTC
Size:
1.40 KB
patch
obsolete
>--- a/src/lib/libzpool/dbuf.c 2007-09-06 07:56:58.000000000 +0200 >+++ b/src/lib/libzpool/dbuf.c 2007-09-06 07:57:42.000000000 +0200 >@@ -540,7 +540,6 @@ > { > int err = 0; > int havepzio = (zio != NULL); >- int prefetch; > > /* > * We don't have to hold the mutex to check db_state because it >@@ -551,15 +550,9 @@ > if ((flags & DB_RF_HAVESTRUCT) == 0) > rw_enter(&db->db_dnode->dn_struct_rwlock, RW_READER); > >- prefetch = db->db_level == 0 && db->db_blkid != DB_BONUS_BLKID && >- (flags & DB_RF_NOPREFETCH) == 0 && db->db_dnode != NULL; >- > mutex_enter(&db->db_mtx); > if (db->db_state == DB_CACHED) { > mutex_exit(&db->db_mtx); >- if (prefetch) >- dmu_zfetch(&db->db_dnode->dn_zfetch, db->db.db_offset, >- db->db.db_size, TRUE); > if ((flags & DB_RF_HAVESTRUCT) == 0) > rw_exit(&db->db_dnode->dn_struct_rwlock); > } else if (db->db_state == DB_UNCACHED) { >@@ -571,9 +564,6 @@ > > /* dbuf_read_impl has dropped db_mtx for us */ > >- if (prefetch) >- dmu_zfetch(&db->db_dnode->dn_zfetch, db->db.db_offset, >- db->db.db_size, flags & DB_RF_CACHED); > > if ((flags & DB_RF_HAVESTRUCT) == 0) > rw_exit(&db->db_dnode->dn_struct_rwlock); >@@ -582,9 +572,6 @@ > err = zio_wait(zio); > } else { > mutex_exit(&db->db_mtx); >- if (prefetch) >- dmu_zfetch(&db->db_dnode->dn_zfetch, db->db.db_offset, >- db->db.db_size, TRUE); > if ((flags & DB_RF_HAVESTRUCT) == 0) > rw_exit(&db->db_dnode->dn_struct_rwlock); >
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 177010
:
118129
|
118130
|
118131
|
118133
|
125652
|
129895
|
130138
| 130139