diff options
Diffstat (limited to 'include/linux/buffer_head.h')
| -rw-r--r-- | include/linux/buffer_head.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index bd7ac793be19..7b73bb8f1970 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
| @@ -165,15 +165,8 @@ int sync_mapping_buffers(struct address_space *mapping); | |||
| 165 | void unmap_underlying_metadata(struct block_device *bdev, sector_t block); | 165 | void unmap_underlying_metadata(struct block_device *bdev, sector_t block); |
| 166 | 166 | ||
| 167 | void mark_buffer_async_write(struct buffer_head *bh); | 167 | void mark_buffer_async_write(struct buffer_head *bh); |
| 168 | void invalidate_bdev(struct block_device *); | ||
| 169 | int sync_blockdev(struct block_device *bdev); | ||
| 170 | void __wait_on_buffer(struct buffer_head *); | 168 | void __wait_on_buffer(struct buffer_head *); |
| 171 | wait_queue_head_t *bh_waitq_head(struct buffer_head *bh); | 169 | wait_queue_head_t *bh_waitq_head(struct buffer_head *bh); |
| 172 | int fsync_bdev(struct block_device *); | ||
| 173 | struct super_block *freeze_bdev(struct block_device *); | ||
| 174 | int thaw_bdev(struct block_device *, struct super_block *); | ||
| 175 | int fsync_super(struct super_block *); | ||
| 176 | int fsync_no_super(struct block_device *); | ||
| 177 | struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, | 170 | struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, |
| 178 | unsigned size); | 171 | unsigned size); |
| 179 | struct buffer_head *__getblk(struct block_device *bdev, sector_t block, | 172 | struct buffer_head *__getblk(struct block_device *bdev, sector_t block, |
| @@ -223,7 +216,7 @@ int cont_write_begin(struct file *, struct address_space *, loff_t, | |||
| 223 | get_block_t *, loff_t *); | 216 | get_block_t *, loff_t *); |
| 224 | int generic_cont_expand_simple(struct inode *inode, loff_t size); | 217 | int generic_cont_expand_simple(struct inode *inode, loff_t size); |
| 225 | int block_commit_write(struct page *page, unsigned from, unsigned to); | 218 | int block_commit_write(struct page *page, unsigned from, unsigned to); |
| 226 | int block_page_mkwrite(struct vm_area_struct *vma, struct page *page, | 219 | int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, |
| 227 | get_block_t get_block); | 220 | get_block_t get_block); |
| 228 | void block_sync_page(struct page *); | 221 | void block_sync_page(struct page *); |
| 229 | sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *); | 222 | sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *); |
| @@ -339,22 +332,10 @@ extern int __set_page_dirty_buffers(struct page *page); | |||
| 339 | 332 | ||
| 340 | static inline void buffer_init(void) {} | 333 | static inline void buffer_init(void) {} |
| 341 | static inline int try_to_free_buffers(struct page *page) { return 1; } | 334 | static inline int try_to_free_buffers(struct page *page) { return 1; } |
| 342 | static inline int sync_blockdev(struct block_device *bdev) { return 0; } | ||
| 343 | static inline int inode_has_buffers(struct inode *inode) { return 0; } | 335 | static inline int inode_has_buffers(struct inode *inode) { return 0; } |
| 344 | static inline void invalidate_inode_buffers(struct inode *inode) {} | 336 | static inline void invalidate_inode_buffers(struct inode *inode) {} |
| 345 | static inline int remove_inode_buffers(struct inode *inode) { return 1; } | 337 | static inline int remove_inode_buffers(struct inode *inode) { return 1; } |
| 346 | static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; } | 338 | static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; } |
| 347 | static inline void invalidate_bdev(struct block_device *bdev) {} | ||
| 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 | } | ||
| 358 | 339 | ||
| 359 | #endif /* CONFIG_BLOCK */ | 340 | #endif /* CONFIG_BLOCK */ |
| 360 | #endif /* _LINUX_BUFFER_HEAD_H */ | 341 | #endif /* _LINUX_BUFFER_HEAD_H */ |
