From owner-svn-src-all@FreeBSD.ORG Tue Mar 13 10:04:14 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A59A7106566B; Tue, 13 Mar 2012 10:04:14 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 76F038FC1D; Tue, 13 Mar 2012 10:04:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2DA4EDq036751; Tue, 13 Mar 2012 10:04:14 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2DA4E8s036746; Tue, 13 Mar 2012 10:04:14 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201203131004.q2DA4E8s036746@svn.freebsd.org> From: Kevin Lo Date: Tue, 13 Mar 2012 10:04:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232918 - in head/sys/fs: fdescfs nullfs portalfs unionfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2012 10:04:14 -0000 Author: kevlo Date: Tue Mar 13 10:04:13 2012 New Revision: 232918 URL: http://svn.freebsd.org/changeset/base/232918 Log: Use NULL instead of 0 Modified: head/sys/fs/fdescfs/fdesc_vfsops.c head/sys/fs/nullfs/null_vfsops.c head/sys/fs/portalfs/portal_vfsops.c head/sys/fs/unionfs/union_vfsops.c Modified: head/sys/fs/fdescfs/fdesc_vfsops.c ============================================================================== --- head/sys/fs/fdescfs/fdesc_vfsops.c Tue Mar 13 08:18:54 2012 (r232917) +++ head/sys/fs/fdescfs/fdesc_vfsops.c Tue Mar 13 10:04:13 2012 (r232918) @@ -98,7 +98,7 @@ fdesc_mount(struct mount *mp) error = fdesc_allocvp(Froot, -1, FD_ROOT, mp, &rvp); if (error) { free(fmp, M_FDESCMNT); - mp->mnt_data = 0; + mp->mnt_data = NULL; return (error); } rvp->v_type = VDIR; @@ -152,7 +152,7 @@ fdesc_unmount(mp, mntflags) */ mtx_lock(&fdesc_hashmtx); data = mp->mnt_data; - mp->mnt_data = 0; + mp->mnt_data = NULL; mtx_unlock(&fdesc_hashmtx); free(data, M_FDESCMNT); /* XXX */ Modified: head/sys/fs/nullfs/null_vfsops.c ============================================================================== --- head/sys/fs/nullfs/null_vfsops.c Tue Mar 13 08:18:54 2012 (r232917) +++ head/sys/fs/nullfs/null_vfsops.c Tue Mar 13 10:04:13 2012 (r232918) @@ -188,7 +188,7 @@ nullfs_mount(struct mount *mp) mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & (MNTK_MPSAFE | MNTK_SHARED_WRITES); MNT_IUNLOCK(mp); - mp->mnt_data = xmp; + mp->mnt_data = xmp; vfs_getnewfsid(mp); vfs_mountedfrom(mp, target); @@ -224,7 +224,7 @@ nullfs_unmount(mp, mntflags) * Finally, throw away the null_mount structure */ mntdata = mp->mnt_data; - mp->mnt_data = 0; + mp->mnt_data = NULL; free(mntdata, M_NULLFSMNT); return 0; } Modified: head/sys/fs/portalfs/portal_vfsops.c ============================================================================== --- head/sys/fs/portalfs/portal_vfsops.c Tue Mar 13 08:18:54 2012 (r232917) +++ head/sys/fs/portalfs/portal_vfsops.c Tue Mar 13 10:04:13 2012 (r232918) @@ -164,7 +164,7 @@ portal_mount(struct mount *mp) MNT_ILOCK(mp); mp->mnt_flag |= MNT_LOCAL; MNT_IUNLOCK(mp); - mp->mnt_data = fmp; + mp->mnt_data = fmp; vfs_getnewfsid(mp); vfs_mountedfrom(mp, p); @@ -213,7 +213,7 @@ portal_unmount(mp, mntflags) * Finally, throw away the portalmount structure */ free(mp->mnt_data, M_PORTALFSMNT); /* XXX */ - mp->mnt_data = 0; + mp->mnt_data = NULL; return (0); } Modified: head/sys/fs/unionfs/union_vfsops.c ============================================================================== --- head/sys/fs/unionfs/union_vfsops.c Tue Mar 13 08:18:54 2012 (r232917) +++ head/sys/fs/unionfs/union_vfsops.c Tue Mar 13 10:04:13 2012 (r232918) @@ -352,7 +352,7 @@ unionfs_unmount(struct mount *mp, int mn return (error); free(ump, M_UNIONFSMNT); - mp->mnt_data = 0; + mp->mnt_data = NULL; return (0); }