Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Move struct lfs_inode_ext to lfs_inode.h; it doe...
details: https://anonhg.NetBSD.org/src/rev/03327816b25f
branches: trunk
changeset: 787273:03327816b25f
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jun 09 00:13:55 2013 +0000
description:
Move struct lfs_inode_ext to lfs_inode.h; it doesn't need to be public.
diffstat:
sys/ufs/lfs/lfs.h | 37 +------------------------------------
sys/ufs/lfs/lfs_inode.h | 38 +++++++++++++++++++++++++++++++++++++-
2 files changed, 38 insertions(+), 37 deletions(-)
diffs (101 lines):
diff -r 9f532e4f2371 -r 03327816b25f sys/ufs/lfs/lfs.h
--- a/sys/ufs/lfs/lfs.h Sun Jun 09 00:10:55 2013 +0000
+++ b/sys/ufs/lfs/lfs.h Sun Jun 09 00:13:55 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.h,v 1.151 2013/06/08 23:04:49 dholland Exp $ */
+/* $NetBSD: lfs.h,v 1.152 2013/06/09 00:13:55 dholland Exp $ */
/* from NetBSD: dinode.h,v 1.22 2013/01/22 09:39:18 dholland Exp */
/* from NetBSD: dir.h,v 1.21 2009/07/22 04:49:19 dholland Exp */
@@ -1329,41 +1329,6 @@
#endif /* _KERNEL */
/*
- * LFS inode extensions.
- */
-struct lfs_inode_ext {
- off_t lfs_osize; /* size of file on disk */
- u_int32_t lfs_effnblocks; /* number of blocks when i/o completes */
- size_t lfs_fragsize[ULFS_NDADDR]; /* size of on-disk direct blocks */
- TAILQ_ENTRY(inode) lfs_dchain; /* Dirop chain. */
- TAILQ_ENTRY(inode) lfs_pchain; /* Paging chain. */
-#define LFSI_NO_GOP_WRITE 0x01
-#define LFSI_DELETED 0x02
-#define LFSI_WRAPBLOCK 0x04
-#define LFSI_WRAPWAIT 0x08
-#define LFSI_BMAP 0x10
- u_int32_t lfs_iflags; /* Inode flags */
- daddr_t lfs_hiblk; /* Highest lbn held by inode */
-#ifdef _KERNEL
- SPLAY_HEAD(lfs_splay, lbnentry) lfs_lbtree; /* Tree of balloc'd lbns */
- int lfs_nbtree; /* Size of tree */
- LIST_HEAD(, segdelta) lfs_segdhd;
-#endif
- int16_t lfs_odnlink; /* on-disk nlink count for cleaner */
-};
-#define i_lfs_osize inode_ext.lfs->lfs_osize
-#define i_lfs_effnblks inode_ext.lfs->lfs_effnblocks
-#define i_lfs_fragsize inode_ext.lfs->lfs_fragsize
-#define i_lfs_dchain inode_ext.lfs->lfs_dchain
-#define i_lfs_pchain inode_ext.lfs->lfs_pchain
-#define i_lfs_iflags inode_ext.lfs->lfs_iflags
-#define i_lfs_hiblk inode_ext.lfs->lfs_hiblk
-#define i_lfs_lbtree inode_ext.lfs->lfs_lbtree
-#define i_lfs_nbtree inode_ext.lfs->lfs_nbtree
-#define i_lfs_segdhd inode_ext.lfs->lfs_segdhd
-#define i_lfs_odnlink inode_ext.lfs->lfs_odnlink
-
-/*
* Macros for determining free space on the disk, with the variable metadata
* of segment summaries and inode blocks taken into account.
*/
diff -r 9f532e4f2371 -r 03327816b25f sys/ufs/lfs/lfs_inode.h
--- a/sys/ufs/lfs/lfs_inode.h Sun Jun 09 00:10:55 2013 +0000
+++ b/sys/ufs/lfs/lfs_inode.h Sun Jun 09 00:13:55 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_inode.h,v 1.3 2013/06/08 23:12:51 dholland Exp $ */
+/* $NetBSD: lfs_inode.h,v 1.4 2013/06/09 00:13:55 dholland Exp $ */
/* from NetBSD: ulfs_inode.h,v 1.5 2013/06/06 00:51:50 dholland Exp */
/* from NetBSD: inode.h,v 1.64 2012/11/19 00:36:21 jakllsch Exp */
@@ -210,4 +210,40 @@
#define IN_PAGING 0x1000 /* LFS: file is on paging queue */
#define IN_CDIROP 0x4000 /* LFS: dirop completed pending i/o */
+/*
+ * LFS inode extensions.
+ */
+struct lfs_inode_ext {
+ off_t lfs_osize; /* size of file on disk */
+ u_int32_t lfs_effnblocks; /* number of blocks when i/o completes */
+ size_t lfs_fragsize[ULFS_NDADDR]; /* size of on-disk direct blocks */
+ TAILQ_ENTRY(inode) lfs_dchain; /* Dirop chain. */
+ TAILQ_ENTRY(inode) lfs_pchain; /* Paging chain. */
+#define LFSI_NO_GOP_WRITE 0x01
+#define LFSI_DELETED 0x02
+#define LFSI_WRAPBLOCK 0x04
+#define LFSI_WRAPWAIT 0x08
+#define LFSI_BMAP 0x10
+ u_int32_t lfs_iflags; /* Inode flags */
+ daddr_t lfs_hiblk; /* Highest lbn held by inode */
+#ifdef _KERNEL
+ SPLAY_HEAD(lfs_splay, lbnentry) lfs_lbtree; /* Tree of balloc'd lbns */
+ int lfs_nbtree; /* Size of tree */
+ LIST_HEAD(, segdelta) lfs_segdhd;
+#endif
+ int16_t lfs_odnlink; /* on-disk nlink count for cleaner */
+};
+#define i_lfs_osize inode_ext.lfs->lfs_osize
+#define i_lfs_effnblks inode_ext.lfs->lfs_effnblocks
+#define i_lfs_fragsize inode_ext.lfs->lfs_fragsize
+#define i_lfs_dchain inode_ext.lfs->lfs_dchain
+#define i_lfs_pchain inode_ext.lfs->lfs_pchain
+#define i_lfs_iflags inode_ext.lfs->lfs_iflags
+#define i_lfs_hiblk inode_ext.lfs->lfs_hiblk
+#define i_lfs_lbtree inode_ext.lfs->lfs_lbtree
+#define i_lfs_nbtree inode_ext.lfs->lfs_nbtree
+#define i_lfs_segdhd inode_ext.lfs->lfs_segdhd
+#define i_lfs_odnlink inode_ext.lfs->lfs_odnlink
+
+
#endif /* _UFS_LFS_LFS_INODE_H_ */
Home |
Main Index |
Thread Index |
Old Index