X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Ftxg.c;fp=module%2Fzfs%2Ftxg.c;h=838a6f64237cfc84174250a83efa5e7c876255dd;hb=29809a6cbae9869ca6ee026337981b2c9771650a;hp=17494bcdad1dc0a9e2be6ffe6f011fa4b47b4fc6;hpb=b9b24bb4ca45f2d903efadba44d10dfd182f62ac;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);