ffs_softdep.c (108892) | ffs_softdep.c (109623) |
---|---|
1/* 2 * Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved. 3 * 4 * The soft updates code is derived from the appendix of a University 5 * of Michigan technical report (Gregory R. Ganger and Yale N. Patt, 6 * "Soft Updates: A Solution to the Metadata Update Problem in File 7 * Systems", CSE-TR-254-95, August 1995). 8 * --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)ffs_softdep.c 9.59 (McKusick) 6/21/00 39 */ 40 41#include <sys/cdefs.h> | 1/* 2 * Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved. 3 * 4 * The soft updates code is derived from the appendix of a University 5 * of Michigan technical report (Gregory R. Ganger and Yale N. Patt, 6 * "Soft Updates: A Solution to the Metadata Update Problem in File 7 * Systems", CSE-TR-254-95, August 1995). 8 * --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)ffs_softdep.c 9.59 (McKusick) 6/21/00 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_softdep.c 108892 2003-01-07 18:23:50Z mckusick $"); | 42__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_softdep.c 109623 2003-01-21 08:56:16Z alfred $"); |
43 44/* 45 * For now we want the safety net that the DIAGNOSTIC and DEBUG flags provide. 46 */ 47#ifndef DIAGNOSTIC 48#define DIAGNOSTIC 49#endif 50#ifndef DEBUG --- 40 unchanged lines hidden (view full) --- 91static MALLOC_DEFINE(M_FREEFRAG, "freefrag","Previously used frag for an inode"); 92static MALLOC_DEFINE(M_FREEBLKS, "freeblks","Blocks freed from an inode"); 93static MALLOC_DEFINE(M_FREEFILE, "freefile","Inode deallocated"); 94static MALLOC_DEFINE(M_DIRADD, "diradd","New directory entry"); 95static MALLOC_DEFINE(M_MKDIR, "mkdir","New directory"); 96static MALLOC_DEFINE(M_DIRREM, "dirrem","Directory entry deleted"); 97static MALLOC_DEFINE(M_NEWDIRBLK, "newdirblk","Unclaimed new directory block"); 98 | 43 44/* 45 * For now we want the safety net that the DIAGNOSTIC and DEBUG flags provide. 46 */ 47#ifndef DIAGNOSTIC 48#define DIAGNOSTIC 49#endif 50#ifndef DEBUG --- 40 unchanged lines hidden (view full) --- 91static MALLOC_DEFINE(M_FREEFRAG, "freefrag","Previously used frag for an inode"); 92static MALLOC_DEFINE(M_FREEBLKS, "freeblks","Blocks freed from an inode"); 93static MALLOC_DEFINE(M_FREEFILE, "freefile","Inode deallocated"); 94static MALLOC_DEFINE(M_DIRADD, "diradd","New directory entry"); 95static MALLOC_DEFINE(M_MKDIR, "mkdir","New directory"); 96static MALLOC_DEFINE(M_DIRREM, "dirrem","Directory entry deleted"); 97static MALLOC_DEFINE(M_NEWDIRBLK, "newdirblk","Unclaimed new directory block"); 98 |
99#define M_SOFTDEP_FLAGS (M_WAITOK | M_USE_RESERVE) | 99#define M_SOFTDEP_FLAGS (M_USE_RESERVE) |
100 101#define D_PAGEDEP 0 102#define D_INODEDEP 1 103#define D_NEWBLK 2 104#define D_BMSAFEMAP 3 105#define D_ALLOCDIRECT 4 106#define D_INDIRDEP 5 107#define D_ALLOCINDIR 6 --- 5768 unchanged lines hidden --- | 100 101#define D_PAGEDEP 0 102#define D_INODEDEP 1 103#define D_NEWBLK 2 104#define D_BMSAFEMAP 3 105#define D_ALLOCDIRECT 4 106#define D_INDIRDEP 5 107#define D_ALLOCINDIR 6 --- 5768 unchanged lines hidden --- |