From owner-cvs-src@FreeBSD.ORG Fri Jun 29 05:23:16 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7404C16A41F; Fri, 29 Jun 2007 05:23:16 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 61EEF13C4B8; Fri, 29 Jun 2007 05:23:16 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5T5NGT1056277; Fri, 29 Jun 2007 05:23:16 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5T5NGo9056276; Fri, 29 Jun 2007 05:23:16 GMT (envelope-from delphij) Message-Id: <200706290523.l5T5NGo9056276@repoman.freebsd.org> From: Xin LI Date: Fri, 29 Jun 2007 05:23:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/conf files src/sys/modules/tmpfs Makefile src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_uma.c tmpfs_uma.h tmpfs_vfsops.c tmpfs_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 05:23:16 -0000 delphij 2007-06-29 05:23:15 UTC FreeBSD src repository Modified files: sys/conf files sys/modules/tmpfs Makefile sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c Removed files: sys/fs/tmpfs tmpfs_uma.c tmpfs_uma.h Log: MFp4: - Remove unnecessary NULL checks after M_WAITOK allocations. - Use VOP_ACCESS instead of hand-rolled suser_cred() calls. [1] - Use malloc(9) KPI to allocate memory for string. The optimization taken from NetBSD is not valid for FreeBSD because our malloc(9) already act that way. [2] Requested by: rwatson [1] Submitted by: Howard Su [2] Approved by: re (tmpfs blanket) Revision Changes Path 1.1224 +0 -1 src/sys/conf/files 1.6 +2 -4 src/sys/fs/tmpfs/tmpfs.h 1.7 +15 -29 src/sys/fs/tmpfs/tmpfs_subr.c 1.4 +0 -61 src/sys/fs/tmpfs/tmpfs_uma.c (dead) 1.5 +0 -81 src/sys/fs/tmpfs/tmpfs_uma.h (dead) 1.4 +3 -5 src/sys/fs/tmpfs/tmpfs_vfsops.c 1.6 +4 -11 src/sys/fs/tmpfs/tmpfs_vnops.c 1.2 +1 -2 src/sys/modules/tmpfs/Makefile