X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Ftxg.c;h=838a6f64237cfc84174250a83efa5e7c876255dd;hb=ea0b2538cd5967fcdf26b7b7c01859a060fef3e3;hp=17494bcdad1dc0a9e2be6ffe6f011fa4b47b4fc6;hpb=e95853a331529a6cb96fdf10476c53441e59f4e1;p=zfs.git diff --git a/module/zfs/txg.c b/module/zfs/txg.c index 17494bc..838a6f6 100644 --- a/module/zfs/txg.c +++ b/module/zfs/txg.c @@ -20,6 +20,8 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. + * Portions Copyright 2011 Martin Matuska + * Copyright (c) 2012 by Delphix. All rights reserved. */ #include @@ -669,7 +671,7 @@ txg_list_destroy(txg_list_t *tl) mutex_destroy(&tl->tl_lock); } -int +boolean_t txg_list_empty(txg_list_t *tl, uint64_t txg) { return (tl->tl_head[txg & TXG_MASK] == NULL);