diff options
Diffstat (limited to 'fs/nilfs2/segment.h')
-rw-r--r-- | fs/nilfs2/segment.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/nilfs2/segment.h b/fs/nilfs2/segment.h index 615654b8c329..2dd39da9f386 100644 --- a/fs/nilfs2/segment.h +++ b/fs/nilfs2/segment.h | |||
@@ -93,6 +93,9 @@ struct nilfs_segsum_pointer { | |||
93 | * @sc_active_segments: List of active segments that were already written out | 93 | * @sc_active_segments: List of active segments that were already written out |
94 | * @sc_cleaning_segments: List of segments to be freed through construction | 94 | * @sc_cleaning_segments: List of segments to be freed through construction |
95 | * @sc_copied_buffers: List of copied buffers (buffer heads) to freeze data | 95 | * @sc_copied_buffers: List of copied buffers (buffer heads) to freeze data |
96 | * @sc_dsync_inode: inode whose data pages are written for a sync operation | ||
97 | * @sc_dsync_start: start byte offset of data pages | ||
98 | * @sc_dsync_end: end byte offset of data pages (inclusive) | ||
96 | * @sc_segbufs: List of segment buffers | 99 | * @sc_segbufs: List of segment buffers |
97 | * @sc_segbuf_nblocks: Number of available blocks in segment buffers. | 100 | * @sc_segbuf_nblocks: Number of available blocks in segment buffers. |
98 | * @sc_curseg: Current segment buffer | 101 | * @sc_curseg: Current segment buffer |
@@ -134,6 +137,10 @@ struct nilfs_sc_info { | |||
134 | struct list_head sc_cleaning_segments; | 137 | struct list_head sc_cleaning_segments; |
135 | struct list_head sc_copied_buffers; | 138 | struct list_head sc_copied_buffers; |
136 | 139 | ||
140 | struct nilfs_inode_info *sc_dsync_inode; | ||
141 | loff_t sc_dsync_start; | ||
142 | loff_t sc_dsync_end; | ||
143 | |||
137 | /* Segment buffers */ | 144 | /* Segment buffers */ |
138 | struct list_head sc_segbufs; | 145 | struct list_head sc_segbufs; |
139 | unsigned long sc_segbuf_nblocks; | 146 | unsigned long sc_segbuf_nblocks; |
@@ -221,8 +228,8 @@ extern void nilfs_destroy_transaction_cache(void); | |||
221 | extern void nilfs_relax_pressure_in_lock(struct super_block *); | 228 | extern void nilfs_relax_pressure_in_lock(struct super_block *); |
222 | 229 | ||
223 | extern int nilfs_construct_segment(struct super_block *); | 230 | extern int nilfs_construct_segment(struct super_block *); |
224 | extern int nilfs_construct_dsync_segment(struct super_block *, | 231 | extern int nilfs_construct_dsync_segment(struct super_block *, struct inode *, |
225 | struct inode *); | 232 | loff_t, loff_t); |
226 | extern void nilfs_flush_segment(struct super_block *, ino_t); | 233 | extern void nilfs_flush_segment(struct super_block *, ino_t); |
227 | extern int nilfs_clean_segments(struct super_block *, void __user *); | 234 | extern int nilfs_clean_segments(struct super_block *, void __user *); |
228 | 235 | ||