Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/ufs/ffs/ffs_snapshot.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/ufs/ffs/ffs_snapshot.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.135 retrieving revision 1.136 diff -u -p -r1.135 -r1.136 --- src/sys/ufs/ffs/ffs_snapshot.c 2014/05/30 08:40:09 1.135 +++ src/sys/ufs/ffs/ffs_snapshot.c 2014/07/10 06:02:40 1.136 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_snapshot.c,v 1.135 2014/05/30 08:40:09 hannken Exp $ */ +/* $NetBSD: ffs_snapshot.c,v 1.136 2014/07/10 06:02:40 dholland Exp $ */ /* * Copyright 2000 Marshall Kirk McKusick. All Rights Reserved. @@ -38,7 +38,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.135 2014/05/30 08:40:09 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.136 2014/07/10 06:02:40 dholland Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -399,7 +399,7 @@ out: #endif } if (error) { - if (!UFS_WAPBL_BEGIN(mp)) { + if (UFS_WAPBL_BEGIN(mp) == 0) { (void) ffs_truncate(vp, (off_t)0, 0, NOCRED); UFS_WAPBL_END(mp); }