History log of /netbsd/sys/ufs/ufs/ufs_wapbl.h (Results 1 – 18 of 18)
Revision Date Author Comments
# 018d6f38 11-Apr-2020 jdolecek <jdolecek@NetBSD.org>

remove noncompilable WAPBL_DEBUG_INODES

PR kern/49554 by Thomas Klausner


# 8fd614bd 05-Mar-2020 riastradh <riastradh@NetBSD.org>

Revert "Include opt_diagnostic.h for DIAGNOSTIC."

This did not do what I thought it did. opt_diagnostic.h is only for
the unused _DIAGNOSTIC, which seems like an abortive attempt to
incrementally c

Revert "Include opt_diagnostic.h for DIAGNOSTIC."

This did not do what I thought it did. opt_diagnostic.h is only for
the unused _DIAGNOSTIC, which seems like an abortive attempt to
incrementally convert DIAGNOSTIC to an opt_*.h option rather than a
command-line option.

show more ...


# a68c2c90 05-Mar-2020 riastradh <riastradh@NetBSD.org>

Include opt_diagnostic.h for DIAGNOSTIC.

...at least, in header files, which may not have already included
libkern.h.


# 57cb8486 10-Dec-2018 jdolecek <jdolecek@NetBSD.org>

put back UFS_WAPBL_JUNLOCK_ASSERT(), the underlying rw_write_held() check
doesn't actually have a race since it checks if the rwlock is held by
current lwp


# 6778c1be 10-Dec-2018 jdolecek <jdolecek@NetBSD.org>

make UFS_WAPBL_JLOCK_ASSERT() #ifdef DIAGNOSTIC, same as the underlying
function KASSERT(), so that it actually does something; fix code using
it to actually pass correct params, so that it compiles

make UFS_WAPBL_JLOCK_ASSERT() #ifdef DIAGNOSTIC, same as the underlying
function KASSERT(), so that it actually does something; fix code using
it to actually pass correct params, so that it compiles

remove UFS_WAPBL_JUNLOCK_ASSERT(), as that is inherently racy (it's
okay on those places if the rwlock is held by other lwp); depend
on the RW_ASSERT()/LOCKDEBUG inside rw_enter() to catch the case
with wapbl rwlock held by current lwp

show more ...


# 466d0c35 11-Nov-2016 jdolecek <jdolecek@NetBSD.org>

fix !WAPBL variant of UFS_WAPBL_REGISTER_DEALLOCATION()


# 1b473e66 10-Nov-2016 jdolecek <jdolecek@NetBSD.org>

during truncate with wapbl, register deallocation for upper indirect block
before recursing into lower blocks, to make sure that it will be removed after
all its referenced blocks are removed

fixes

during truncate with wapbl, register deallocation for upper indirect block
before recursing into lower blocks, to make sure that it will be removed after
all its referenced blocks are removed

fixes 'ffs_blkfree_common: freeing free block' panic triggered by
ufs_truncate_retry() when just the upper indirect block registration failed,
code tried to free the lower blocks again after wapbl flush

problem found by hannken@, thank you

show more ...


# 8f2837a5 28-Oct-2016 jdolecek <jdolecek@NetBSD.org>

reorganize ffs_truncate()/ffs_indirtrunc() to be able to partially
succeed; change wapbl_register_deallocation() to return EAGAIN
rather than panic when code hits the limit

callers changed to either

reorganize ffs_truncate()/ffs_indirtrunc() to be able to partially
succeed; change wapbl_register_deallocation() to return EAGAIN
rather than panic when code hits the limit

callers changed to either loop calling ffs_truncate() using new
utility ufs_truncate_retry() if their semantics requires it, or
just ignore the failure; remove ufs_wapbl_truncate()

this fixes possible user-triggerable panic during truncate, and
resolves WAPBL performance issue with truncates of large files

PR kern/47146 and kern/49175

show more ...


# 97828b25 19-May-2016 riastradh <riastradh@NetBSD.org>

While here, replace GCC __FUNCTION__ by C99 __func__

From coypu.


# 1b6efaa7 19-May-2016 riastradh <riastradh@NetBSD.org>

Simplify ufs_wapbl_begin2/end2, drop 2 suffix

We are no longer calling UFS_WAPBL_BEGIN/END with vnodes (we are giving
NULL as a parameter in all cases), so we can get rid of this input
parameter and

Simplify ufs_wapbl_begin2/end2, drop 2 suffix

We are no longer calling UFS_WAPBL_BEGIN/END with vnodes (we are giving
NULL as a parameter in all cases), so we can get rid of this input
parameter and the relevant check.

From coypu.

show more ...


# fd7708ce 19-May-2016 riastradh <riastradh@NetBSD.org>

Get rid of UFS_WAPBL_BEGIN1/END1

ufs makeinode no longer releases dvp, so incrementing the
usecount for wapbl is unnecessary.

From coypu.


# eeedc94f 10-Nov-2013 christos <christos@NetBSD.org>

__USE a variable for the non-wapbl case


# 6128ca0b 19-Sep-2011 gdt <gdt@NetBSD.org>

Remove prototype for the departed wapbl_ufs_rename.

ok dholland@


# a646187e 18-Nov-2009 yamt <yamt@NetBSD.org>

use NULL instead of 0 for pointers


# fb58d5d6 08-Oct-2008 pooka <pooka@NetBSD.org>

#error if WABPL_DEBUG_INODES is defined. That code has bitrotted
more than casu marzu cheese.


# 328f4978 06-Aug-2008 oster <oster@NetBSD.org>

Define UFS_WAPBL_UNREGISTER_INODE() and UFS_WAPBL_REGISTER_INODE()
to something that pacifies the compiler in the non-WAPBL case.

Fix suggested by Martin Husemann. Fixes PR#39302.


# 0800f2fb 31-Jul-2008 simonb <simonb@NetBSD.org>

Be consistent with #define<tab>.


# 36d65f11 31-Jul-2008 simonb <simonb@NetBSD.org>

Merge the simonb-wapbl branch. From the original branch commit:

Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
journaling code. Originally written by Darrin B. Jewell while

Merge the simonb-wapbl branch. From the original branch commit:

Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
journaling code. Originally written by Darrin B. Jewell while
at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.

OK'd by core@, releng@.

show more ...