From owner-cvs-src-old@FreeBSD.ORG Tue Dec 21 21:59:39 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9587110656A3 for ; Tue, 21 Dec 2010 21:59:39 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8132E8FC1E for ; Tue, 21 Dec 2010 21:59:39 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oBLLxdpj084319 for ; Tue, 21 Dec 2010 21:59:39 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oBLLxdrU084318 for cvs-src-old@freebsd.org; Tue, 21 Dec 2010 21:59:39 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201012212159.oBLLxdrU084318@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Tue, 21 Dec 2010 21:59:21 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys mount.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 21:59:39 -0000 pjd 2010-12-21 21:59:21 UTC FreeBSD src repository Modified files: sys/sys mount.h Log: SVN rev 216626 on 2010-12-21 21:59:21Z by pjd Close body of the VFS_UNLOCK_GIANT() macro into do { } while (0) loop, so it can be used in code like this: if (cond) VFS_UNLOCK_GIANT(vfslocked); else ; /* Do something else. */ Before the change, compiler couldn't decide on its own if else should be applied to the 'if (cond)' or to the if statement inside VFS_UNLOCK_GIANT() macro. Revision Changes Path 1.256 +5 -1 src/sys/sys/mount.h