bmap.h (f198dbb9cf580c09644ebdf46846115c6daff14e) | bmap.h (3033342a0b76048e32ce1faebfa85cf8f1aa93b5) |
---|---|
1/* 2 * bmap.h - NILFS block mapping. 3 * 4 * Copyright (C) 2006-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 111 unchanged lines hidden (view full) --- 120 121/** 122 * struct nilfs_bmap - bmap structure 123 * @b_u: raw data 124 * @b_sem: semaphore 125 * @b_inode: owner of bmap 126 * @b_ops: bmap operation table 127 * @b_pops: bmap ptr operation table | 1/* 2 * bmap.h - NILFS block mapping. 3 * 4 * Copyright (C) 2006-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 111 unchanged lines hidden (view full) --- 120 121/** 122 * struct nilfs_bmap - bmap structure 123 * @b_u: raw data 124 * @b_sem: semaphore 125 * @b_inode: owner of bmap 126 * @b_ops: bmap operation table 127 * @b_pops: bmap ptr operation table |
128 * @b_low: low watermark of conversion 129 * @b_high: high watermark of conversion | |
130 * @b_last_allocated_key: last allocated key for data block 131 * @b_last_allocated_ptr: last allocated ptr for data block 132 * @b_state: state 133 */ 134struct nilfs_bmap { 135 union { 136 __u8 u_flags; 137 __le64 u_data[NILFS_BMAP_SIZE / sizeof(__le64)]; 138 } b_u; 139 struct rw_semaphore b_sem; 140 struct inode *b_inode; 141 const struct nilfs_bmap_operations *b_ops; 142 const struct nilfs_bmap_ptr_operations *b_pops; | 128 * @b_last_allocated_key: last allocated key for data block 129 * @b_last_allocated_ptr: last allocated ptr for data block 130 * @b_state: state 131 */ 132struct nilfs_bmap { 133 union { 134 __u8 u_flags; 135 __le64 u_data[NILFS_BMAP_SIZE / sizeof(__le64)]; 136 } b_u; 137 struct rw_semaphore b_sem; 138 struct inode *b_inode; 139 const struct nilfs_bmap_operations *b_ops; 140 const struct nilfs_bmap_ptr_operations *b_pops; |
143 __u64 b_low; 144 __u64 b_high; | |
145 __u64 b_last_allocated_key; 146 __u64 b_last_allocated_ptr; 147 int b_state; 148}; 149 150/* state */ 151#define NILFS_BMAP_DIRTY 0x00000001 152 --- 79 unchanged lines hidden --- | 141 __u64 b_last_allocated_key; 142 __u64 b_last_allocated_ptr; 143 int b_state; 144}; 145 146/* state */ 147#define NILFS_BMAP_DIRTY 0x00000001 148 --- 79 unchanged lines hidden --- |