Date: Tue, 21 Dec 2010 21:59:21 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/sys mount.h Message-ID: <201012212159.oBLLxdrU084318@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012212159.oBLLxdrU084318>