git: d9654675b1c3 - stable/13 - fusefs: Remove an unused pbuf zone
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 May 2023 13:13:57 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d9654675b1c31d55497fa6b67795e2811fbf54f2 commit d9654675b1c31d55497fa6b67795e2811fbf54f2 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-05-22 13:33:57 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-05-29 13:13:40 +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 (cherry picked from commit e3f7081b1c54fae55cb443a39c2ad44ac3ed4a75) --- 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 7fd96ff639ff..de990c6f754a 100644 --- a/sys/fs/fuse/fuse_vnops.c +++ b/sys/fs/fuse/fuse_vnops.c @@ -227,8 +227,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,