diff options
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 3f82a6e9ca4f..feff16cb9b40 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -2050,6 +2050,16 @@ static int __extent_writepage(struct page *page, struct writeback_control *wbc, | |||
2050 | lock_extent(tree, start, page_end, GFP_NOFS); | 2050 | lock_extent(tree, start, page_end, GFP_NOFS); |
2051 | unlock_start = start; | 2051 | unlock_start = start; |
2052 | 2052 | ||
2053 | if (tree->ops && tree->ops->writepage_start_hook) { | ||
2054 | ret = tree->ops->writepage_start_hook(page, start, page_end); | ||
2055 | if (ret == -EAGAIN) { | ||
2056 | unlock_extent(tree, start, page_end, GFP_NOFS); | ||
2057 | redirty_page_for_writepage(wbc, page); | ||
2058 | unlock_page(page); | ||
2059 | return 0; | ||
2060 | } | ||
2061 | } | ||
2062 | |||
2053 | end = page_end; | 2063 | end = page_end; |
2054 | if (test_range_bit(tree, start, page_end, EXTENT_DELALLOC, 0)) { | 2064 | if (test_range_bit(tree, start, page_end, EXTENT_DELALLOC, 0)) { |
2055 | printk("found delalloc bits after lock_extent\n"); | 2065 | printk("found delalloc bits after lock_extent\n"); |