diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-17 12:53:51 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:04 -0400 |
commit | 247e743cbe6e655768c3679f84821e03c1577902 (patch) | |
tree | edc2b27284365f019859a936885bd100960eb659 /fs/btrfs/extent_io.h | |
parent | e6dcd2dc9c489108648e2ed543315dd134d50a9a (diff) |
Btrfs: Use async helpers to deal with pages that have been improperly dirtied
Higher layers sometimes call set_page_dirty without asking the filesystem
to help. This causes many problems for the data=ordered and cow code.
This commit detects pages that haven't been properly setup for IO and
kicks off an async helper to deal with them.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 2268a7995896..23affd27af5e 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -30,6 +30,7 @@ typedef int (extent_submit_bio_hook_t)(struct inode *inode, int rw, | |||
30 | struct bio *bio, int mirror_num); | 30 | struct bio *bio, int mirror_num); |
31 | struct extent_io_ops { | 31 | struct extent_io_ops { |
32 | int (*fill_delalloc)(struct inode *inode, u64 start, u64 end); | 32 | int (*fill_delalloc)(struct inode *inode, u64 start, u64 end); |
33 | int (*writepage_start_hook)(struct page *page, u64 start, u64 end); | ||
33 | int (*writepage_io_hook)(struct page *page, u64 start, u64 end); | 34 | int (*writepage_io_hook)(struct page *page, u64 start, u64 end); |
34 | extent_submit_bio_hook_t *submit_bio_hook; | 35 | extent_submit_bio_hook_t *submit_bio_hook; |
35 | int (*merge_bio_hook)(struct page *page, unsigned long offset, | 36 | int (*merge_bio_hook)(struct page *page, unsigned long offset, |