From a88ba739cb01c0b8188ffc7dabba13045aecbe5a Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 11 Jan 2017 12:12:32 +0000 Subject: [PATCH] Remove RO check in tmpfs_putpages for now, the syncer doesn't like the error code. --- sys/fs/tmpfs/tmpfs_vnops.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index ba16d8197316..665377539059 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_vnops.c,v 1.128 2016/08/20 12:37:08 hannken Exp $ */ +/* $NetBSD: tmpfs_vnops.c,v 1.129 2017/01/11 12:12:32 joerg Exp $ */ /* * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.128 2016/08/20 12:37:08 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.129 2017/01/11 12:12:32 joerg Exp $"); #include #include @@ -1246,11 +1246,6 @@ tmpfs_putpages(void *v) return 0; } - if ((vp->v_mount->mnt_flag & MNT_RDONLY) != 0) { - mutex_exit(vp->v_interlock); - return EROFS; - } - node = VP_TO_TMPFS_NODE(vp); uobj = node->tn_spec.tn_reg.tn_aobj;