diff options
Diffstat (limited to 'include/linux/nilfs2_fs.h')
| -rw-r--r-- | include/linux/nilfs2_fs.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/nilfs2_fs.h b/include/linux/nilfs2_fs.h index ce520402e840..640702e97457 100644 --- a/include/linux/nilfs2_fs.h +++ b/include/linux/nilfs2_fs.h | |||
| @@ -151,6 +151,9 @@ struct nilfs_super_root { | |||
| 151 | #define NILFS_MOUNT_BARRIER 0x1000 /* Use block barriers */ | 151 | #define NILFS_MOUNT_BARRIER 0x1000 /* Use block barriers */ |
| 152 | #define NILFS_MOUNT_STRICT_ORDER 0x2000 /* Apply strict in-order | 152 | #define NILFS_MOUNT_STRICT_ORDER 0x2000 /* Apply strict in-order |
| 153 | semantics also for data */ | 153 | semantics also for data */ |
| 154 | #define NILFS_MOUNT_NORECOVERY 0x4000 /* Disable write access during | ||
| 155 | mount-time recovery */ | ||
| 156 | #define NILFS_MOUNT_DISCARD 0x8000 /* Issue DISCARD requests */ | ||
| 154 | 157 | ||
| 155 | 158 | ||
| 156 | /** | 159 | /** |
| @@ -403,6 +406,28 @@ struct nilfs_segment_summary { | |||
| 403 | #define NILFS_SS_GC 0x0010 /* segment written for cleaner operation */ | 406 | #define NILFS_SS_GC 0x0010 /* segment written for cleaner operation */ |
| 404 | 407 | ||
| 405 | /** | 408 | /** |
| 409 | * struct nilfs_btree_node - B-tree node | ||
| 410 | * @bn_flags: flags | ||
| 411 | * @bn_level: level | ||
| 412 | * @bn_nchildren: number of children | ||
| 413 | * @bn_pad: padding | ||
| 414 | */ | ||
| 415 | struct nilfs_btree_node { | ||
| 416 | __u8 bn_flags; | ||
| 417 | __u8 bn_level; | ||
| 418 | __le16 bn_nchildren; | ||
| 419 | __le32 bn_pad; | ||
| 420 | }; | ||
| 421 | |||
| 422 | /* flags */ | ||
| 423 | #define NILFS_BTREE_NODE_ROOT 0x01 | ||
| 424 | |||
| 425 | /* level */ | ||
| 426 | #define NILFS_BTREE_LEVEL_DATA 0 | ||
| 427 | #define NILFS_BTREE_LEVEL_NODE_MIN (NILFS_BTREE_LEVEL_DATA + 1) | ||
| 428 | #define NILFS_BTREE_LEVEL_MAX 14 | ||
| 429 | |||
| 430 | /** | ||
| 406 | * struct nilfs_palloc_group_desc - block group descriptor | 431 | * struct nilfs_palloc_group_desc - block group descriptor |
| 407 | * @pg_nfrees: number of free entries in block group | 432 | * @pg_nfrees: number of free entries in block group |
| 408 | */ | 433 | */ |
