Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/fuse/fuse_vnops.c
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | struct vop_vector fuse_vnops = { | ||||
.vop_write = fuse_vnop_write, | .vop_write = fuse_vnop_write, | ||||
.vop_getpages = fuse_vnop_getpages, | .vop_getpages = fuse_vnop_getpages, | ||||
.vop_putpages = fuse_vnop_putpages, | .vop_putpages = fuse_vnop_putpages, | ||||
.vop_print = fuse_vnop_print, | .vop_print = fuse_vnop_print, | ||||
}; | }; | ||||
static u_long fuse_lookup_cache_hits = 0; | static u_long fuse_lookup_cache_hits = 0; | ||||
SYSCTL_ULONG(_vfs_fuse, OID_AUTO, lookup_cache_hits, CTLFLAG_RD, | SYSCTL_ULONG(_vfs_fusefs, OID_AUTO, lookup_cache_hits, CTLFLAG_RD, | ||||
&fuse_lookup_cache_hits, 0, "number of positive cache hits in lookup"); | &fuse_lookup_cache_hits, 0, "number of positive cache hits in lookup"); | ||||
static u_long fuse_lookup_cache_misses = 0; | static u_long fuse_lookup_cache_misses = 0; | ||||
SYSCTL_ULONG(_vfs_fuse, OID_AUTO, lookup_cache_misses, CTLFLAG_RD, | SYSCTL_ULONG(_vfs_fusefs, OID_AUTO, lookup_cache_misses, CTLFLAG_RD, | ||||
&fuse_lookup_cache_misses, 0, "number of cache misses in lookup"); | &fuse_lookup_cache_misses, 0, "number of cache misses in lookup"); | ||||
int fuse_lookup_cache_enable = 1; | int fuse_lookup_cache_enable = 1; | ||||
SYSCTL_INT(_vfs_fuse, OID_AUTO, lookup_cache_enable, CTLFLAG_RW, | SYSCTL_INT(_vfs_fusefs, OID_AUTO, lookup_cache_enable, CTLFLAG_RW, | ||||
&fuse_lookup_cache_enable, 0, "if non-zero, enable lookup cache"); | &fuse_lookup_cache_enable, 0, "if non-zero, enable lookup cache"); | ||||
/* | /* | ||||
* XXX: This feature is highly experimental and can bring to instabilities, | * XXX: This feature is highly experimental and can bring to instabilities, | ||||
* needs revisiting before to be enabled by default. | * needs revisiting before to be enabled by default. | ||||
*/ | */ | ||||
static int fuse_reclaim_revoked = 0; | static int fuse_reclaim_revoked = 0; | ||||
SYSCTL_INT(_vfs_fuse, OID_AUTO, reclaim_revoked, CTLFLAG_RW, | SYSCTL_INT(_vfs_fusefs, OID_AUTO, reclaim_revoked, CTLFLAG_RW, | ||||
&fuse_reclaim_revoked, 0, ""); | &fuse_reclaim_revoked, 0, ""); | ||||
uma_zone_t fuse_pbuf_zone; | uma_zone_t fuse_pbuf_zone; | ||||
#define fuse_vm_page_lock(m) vm_page_lock((m)); | #define fuse_vm_page_lock(m) vm_page_lock((m)); | ||||
#define fuse_vm_page_unlock(m) vm_page_unlock((m)); | #define fuse_vm_page_unlock(m) vm_page_unlock((m)); | ||||
#define fuse_vm_page_lock_queues() ((void)0) | #define fuse_vm_page_lock_queues() ((void)0) | ||||
#define fuse_vm_page_unlock_queues() ((void)0) | #define fuse_vm_page_unlock_queues() ((void)0) | ||||
▲ Show 20 Lines • Show All 2,213 Lines • Show Last 20 Lines |