diff options
Diffstat (limited to 'include/linux/buffer_head.h')
| -rw-r--r-- | include/linux/buffer_head.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 3ce64b90118c..bd7ac793be19 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
| @@ -35,6 +35,7 @@ enum bh_state_bits { | |||
| 35 | BH_Ordered, /* ordered write */ | 35 | BH_Ordered, /* ordered write */ |
| 36 | BH_Eopnotsupp, /* operation not supported (barrier) */ | 36 | BH_Eopnotsupp, /* operation not supported (barrier) */ |
| 37 | BH_Unwritten, /* Buffer is allocated on disk but not written */ | 37 | BH_Unwritten, /* Buffer is allocated on disk but not written */ |
| 38 | BH_Quiet, /* Buffer Error Prinks to be quiet */ | ||
| 38 | 39 | ||
| 39 | BH_PrivateStart,/* not a state bit, but the first bit available | 40 | BH_PrivateStart,/* not a state bit, but the first bit available |
| 40 | * for private allocation by other entities | 41 | * for private allocation by other entities |
| @@ -170,7 +171,7 @@ void __wait_on_buffer(struct buffer_head *); | |||
| 170 | wait_queue_head_t *bh_waitq_head(struct buffer_head *bh); | 171 | wait_queue_head_t *bh_waitq_head(struct buffer_head *bh); |
| 171 | int fsync_bdev(struct block_device *); | 172 | int fsync_bdev(struct block_device *); |
| 172 | struct super_block *freeze_bdev(struct block_device *); | 173 | struct super_block *freeze_bdev(struct block_device *); |
| 173 | void thaw_bdev(struct block_device *, struct super_block *); | 174 | int thaw_bdev(struct block_device *, struct super_block *); |
| 174 | int fsync_super(struct super_block *); | 175 | int fsync_super(struct super_block *); |
| 175 | int fsync_no_super(struct block_device *); | 176 | int fsync_no_super(struct block_device *); |
| 176 | struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, | 177 | struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, |
| @@ -345,6 +346,15 @@ static inline int remove_inode_buffers(struct inode *inode) { return 1; } | |||
| 345 | static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; } | 346 | static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; } |
| 346 | static inline void invalidate_bdev(struct block_device *bdev) {} | 347 | static inline void invalidate_bdev(struct block_device *bdev) {} |
| 347 | 348 | ||
| 349 | static inline struct super_block *freeze_bdev(struct block_device *sb) | ||
| 350 | { | ||
| 351 | return NULL; | ||
| 352 | } | ||
| 353 | |||
| 354 | static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) | ||
| 355 | { | ||
| 356 | return 0; | ||
| 357 | } | ||
| 348 | 358 | ||
| 349 | #endif /* CONFIG_BLOCK */ | 359 | #endif /* CONFIG_BLOCK */ |
| 350 | #endif /* _LINUX_BUFFER_HEAD_H */ | 360 | #endif /* _LINUX_BUFFER_HEAD_H */ |
