git: e3f7081b1c54 - main - fusefs: Remove an unused pbuf zone
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 May 2023 13:36:41 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e3f7081b1c54fae55cb443a39c2ad44ac3ed4a75 commit e3f7081b1c54fae55cb443a39c2ad44ac3ed4a75 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-05-22 13:33:57 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-05-22 13:33:57 +0000 fusefs: Remove an unused pbuf zone The zone has been dead ever since commit b9e20197551d ("fusefs: rewrite vop_getpages and vop_putpages") No functional change intended. Reviewed by: asomers MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D40143 --- sys/fs/fuse/fuse_main.c | 3 --- sys/fs/fuse/fuse_vnops.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/sys/fs/fuse/fuse_main.c b/sys/fs/fuse/fuse_main.c index 824458db72cb..ce40b73f656b 100644 --- a/sys/fs/fuse/fuse_main.c +++ b/sys/fs/fuse/fuse_main.c @@ -96,7 +96,6 @@ struct mtx fuse_mtx; extern struct vfsops fuse_vfsops; extern struct cdevsw fuse_cdevsw; extern struct vop_vector fuse_fifonops; -extern uma_zone_t fuse_pbuf_zone; static struct vfsconf fuse_vfsconf = { .vfc_version = VFS_VERSION, @@ -151,7 +150,6 @@ fuse_loader(struct module *m, int what, void *arg) fuse_file_init(); fuse_internal_init(); fuse_node_init(); - fuse_pbuf_zone = pbuf_zsecond_create("fusepbuf", nswbuf / 2); /* vfs_modevent ignores its first arg */ if ((err = vfs_modevent(NULL, what, &fuse_vfsconf))) @@ -161,7 +159,6 @@ fuse_loader(struct module *m, int what, void *arg) if ((err = vfs_modevent(NULL, what, &fuse_vfsconf))) return (err); fuse_bringdown(eh_tag); - uma_zdestroy(fuse_pbuf_zone); break; default: return (EINVAL); diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c index 6ed44d73a8b9..1bb5b3834c76 100644 --- a/sys/fs/fuse/fuse_vnops.c +++ b/sys/fs/fuse/fuse_vnops.c @@ -229,8 +229,6 @@ struct vop_vector fuse_vnops = { }; VFS_VOP_VECTOR_REGISTER(fuse_vnops); -uma_zone_t fuse_pbuf_zone; - /* Check permission for extattr operations, much like extattr_check_cred */ static int fuse_extattr_check_cred(struct vnode *vp, int ns, struct ucred *cred,