From owner-cvs-all@FreeBSD.ORG Fri Aug 10 11:00:32 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 CBFA816A418; Fri, 10 Aug 2007 11:00:32 +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 BDBF513C46B; Fri, 10 Aug 2007 11:00:32 +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 l7AB0WL8002639; Fri, 10 Aug 2007 11:00:32 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l7AB0WGY002638; Fri, 10 Aug 2007 11:00:32 GMT (envelope-from delphij) Message-Id: <200708101100.l7AB0WGY002638@repoman.freebsd.org> From: Xin LI Date: Fri, 10 Aug 2007 11:00:31 +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/fs/tmpfs tmpfs.h tmpfs_subr.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: Fri, 10 Aug 2007 11:00:32 -0000 delphij 2007-08-10 11:00:31 UTC FreeBSD src repository Modified files: sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vnops.c Log: MFp4: - LK_RETRY prohibits vget() and vn_lock() to return error. Remove associated code. [1] - Properly use vhold() and vdrop() instead of their unlocked versions, we are guaranteed to have the vnode's interlock unheld. [1] - Fix a pseudo-infinite loop caused by 64/32-bit arithmetic with the same way used in modern NetBSD versions. [2] - Reorganize tmpfs_readdir to reduce duplicated code. Submitted by: kib [1] Obtained from: NetBSD [2] Approved by: re (tmpfs blanket) Revision Changes Path 1.11 +67 -4 src/sys/fs/tmpfs/tmpfs.h 1.12 +7 -15 src/sys/fs/tmpfs/tmpfs_subr.c 1.10 +22 -41 src/sys/fs/tmpfs/tmpfs_vnops.c