diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-30 15:07:01 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-30 15:07:01 -0400 |
| commit | 56f29d7fe452890eeeb7f2b0138b2d95b9745fb6 (patch) | |
| tree | 01b6b70297c53c9beb8d11eb186fbad9c166b1a2 /include/linux/buffer_head.h | |
| parent | e823aff2d6eb43083abcc75a32ddfb167c324089 (diff) | |
| parent | 059af497c23492cb1ddcbba11c09dad385960bc0 (diff) | |
Merge branch 'block' of git://brick.kernel.dk/data/git/linux-2.6-block
* 'block' of git://brick.kernel.dk/data/git/linux-2.6-block: (67 commits)
[PATCH] blk_queue_start_tag() shared map race fix
[PATCH] Update axboe@suse.de email address
[PATCH] fix creating zero sized bio mempools in low memory system
[PATCH] CONFIG_BLOCK: blk_congestion_wait() fix
[PATCH] CONFIG_BLOCK internal.h cleanups
[PATCH] BLOCK: Make USB storage depend on SCSI rather than selecting it [try #6]
[PATCH] BLOCK: Make it possible to disable the block layer [try #6]
[PATCH] BLOCK: Remove no-longer necessary linux/buffer_head.h inclusions [try #6]
[PATCH] BLOCK: Remove no-longer necessary linux/mpage.h inclusions [try #6]
[PATCH] BLOCK: Move the msdos device ioctl compat stuff to the msdos driver [try #6]
[PATCH] BLOCK: Move the Ext3 device ioctl compat stuff to the Ext3 driver [try #6]
[PATCH] BLOCK: Move the Ext2 device ioctl compat stuff to the Ext2 driver [try #6]
[PATCH] BLOCK: Move the ReiserFS device ioctl compat stuff to the ReiserFS driver [try #6]
[PATCH] BLOCK: Move common FS-specific ioctls to linux/fs.h [try #6]
[PATCH] BLOCK: Move the loop device ioctl compat stuff to the loop driver [try #6]
[PATCH] BLOCK: Move __invalidate_device() to block_dev.c [try #6]
[PATCH] BLOCK: Dissociate generic_writepages() from mpage stuff [try #6]
[PATCH] BLOCK: Remove dependence on existence of blockdev_superblock [try #6]
[PATCH] BLOCK: Move extern declarations out of fs/*.c into header files [try #6]
[PATCH] BLOCK: Don't call block_sync_page() from AFS [try #6]
...
Diffstat (limited to 'include/linux/buffer_head.h')
| -rw-r--r-- | include/linux/buffer_head.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 737e407d0cd1..131ffd37e716 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | #include <linux/wait.h> | 14 | #include <linux/wait.h> |
| 15 | #include <asm/atomic.h> | 15 | #include <asm/atomic.h> |
| 16 | 16 | ||
| 17 | #ifdef CONFIG_BLOCK | ||
| 18 | |||
| 17 | enum bh_state_bits { | 19 | enum bh_state_bits { |
| 18 | BH_Uptodate, /* Contains valid data */ | 20 | BH_Uptodate, /* Contains valid data */ |
| 19 | BH_Dirty, /* Is dirty */ | 21 | BH_Dirty, /* Is dirty */ |
| @@ -190,9 +192,7 @@ extern int buffer_heads_over_limit; | |||
| 190 | * Generic address_space_operations implementations for buffer_head-backed | 192 | * Generic address_space_operations implementations for buffer_head-backed |
| 191 | * address_spaces. | 193 | * address_spaces. |
| 192 | */ | 194 | */ |
| 193 | int try_to_release_page(struct page * page, gfp_t gfp_mask); | ||
| 194 | void block_invalidatepage(struct page *page, unsigned long offset); | 195 | void block_invalidatepage(struct page *page, unsigned long offset); |
| 195 | void do_invalidatepage(struct page *page, unsigned long offset); | ||
| 196 | int block_write_full_page(struct page *page, get_block_t *get_block, | 196 | int block_write_full_page(struct page *page, get_block_t *get_block, |
| 197 | struct writeback_control *wbc); | 197 | struct writeback_control *wbc); |
| 198 | int block_read_full_page(struct page*, get_block_t*); | 198 | int block_read_full_page(struct page*, get_block_t*); |
| @@ -302,4 +302,19 @@ static inline void lock_buffer(struct buffer_head *bh) | |||
| 302 | __lock_buffer(bh); | 302 | __lock_buffer(bh); |
| 303 | } | 303 | } |
| 304 | 304 | ||
| 305 | extern int __set_page_dirty_buffers(struct page *page); | ||
| 306 | |||
| 307 | #else /* CONFIG_BLOCK */ | ||
| 308 | |||
| 309 | static inline void buffer_init(void) {} | ||
| 310 | static inline int try_to_free_buffers(struct page *page) { return 1; } | ||
| 311 | static inline int sync_blockdev(struct block_device *bdev) { return 0; } | ||
| 312 | static inline int inode_has_buffers(struct inode *inode) { return 0; } | ||
| 313 | static inline void invalidate_inode_buffers(struct inode *inode) {} | ||
| 314 | static inline int remove_inode_buffers(struct inode *inode) { return 1; } | ||
| 315 | static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; } | ||
| 316 | static inline void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers) {} | ||
| 317 | |||
| 318 | |||
| 319 | #endif /* CONFIG_BLOCK */ | ||
| 305 | #endif /* _LINUX_BUFFER_HEAD_H */ | 320 | #endif /* _LINUX_BUFFER_HEAD_H */ |
