Module Name: src Committed By: martin Date: Tue Mar 3 18:48:40 UTC 2020
Modified Files: src/sys/fs/tmpfs [netbsd-9]: tmpfs_vfsops.c Log Message: Pull up following revision(s) (requested by rin in ticket #753): sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.75 remove an always false check and its' "This can never happen?" comment. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.74.4.1 src/sys/fs/tmpfs/tmpfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/tmpfs/tmpfs_vfsops.c diff -u src/sys/fs/tmpfs/tmpfs_vfsops.c:1.74 src/sys/fs/tmpfs/tmpfs_vfsops.c:1.74.4.1 --- src/sys/fs/tmpfs/tmpfs_vfsops.c:1.74 Tue Jan 1 10:06:54 2019 +++ src/sys/fs/tmpfs/tmpfs_vfsops.c Tue Mar 3 18:48:40 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_vfsops.c,v 1.74 2019/01/01 10:06:54 hannken Exp $ */ +/* $NetBSD: tmpfs_vfsops.c,v 1.74.4.1 2020/03/03 18:48:40 martin Exp $ */ /* * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.74 2019/01/01 10:06:54 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.74.4.1 2020/03/03 18:48:40 martin Exp $"); #include <sys/param.h> #include <sys/atomic.h> @@ -132,10 +132,6 @@ tmpfs_mount(struct mount *mp, const char if (args->ta_root_uid == VNOVAL || args->ta_root_gid == VNOVAL) return EINVAL; - /* This can never happen? */ - if ((args->ta_root_mode & ALLPERMS) == VNOVAL) - return EINVAL; - /* Get the memory usage limit for this file-system. */ if (args->ta_size_max < PAGE_SIZE) { memlimit = UINT64_MAX;