From owner-cvs-all@FreeBSD.ORG Mon Nov 26 06:46:45 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66F4216A417; Mon, 26 Nov 2007 06:46:45 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 56EDD13C4D5; Mon, 26 Nov 2007 06:46:45 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lAQ6ki3x002863; Mon, 26 Nov 2007 06:46:44 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lAQ6kiVD002862; Mon, 26 Nov 2007 06:46:44 GMT (envelope-from delphij) Message-Id: <200711260646.lAQ6kiVD002862@repoman.freebsd.org> From: Xin LI Date: Mon, 26 Nov 2007 06:46:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2007 06:46:45 -0000 delphij 2007-11-26 06:46:44 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c Log: MFC MFp4: Several fixes to tmpfs which makes it to survive from pho@'s strees2 suite, to quote his letter, this change: 1. It removes the tn_lookup_dirent stuff. I think this cannot be fixed, because nothing protects vnode/tmpfs node between lookup is done, and actual operation is performed, in the case the vnode lock is dropped. At least, this is the case with the from vnode for rename. For now, we do the linear lookup in the parent node. This has its own drawbacks. Not mentioning speed (that could be fixed by using hash), the real problem is the situation where several hardlinks exist in the dvp. But, I think this is fixable. 2. The patch restores the VV_ROOT flag on the root vnode after it became reclaimed and allocated again. This fixes MPASS assertion at the start of the tmpfs_lookup() reported by many. Submitted by: kib Approved by: re (kensmith) Revision Changes Path 1.11.2.1 +2 -6 src/sys/fs/tmpfs/tmpfs.h 1.12.2.1 +25 -3 src/sys/fs/tmpfs/tmpfs_subr.c 1.11.2.3 +0 -1 src/sys/fs/tmpfs/tmpfs_vfsops.c 1.11.2.1 +19 -23 src/sys/fs/tmpfs/tmpfs_vnops.c