| @@ -2879,10 +2879,9 @@ EXPORT_SYMBOL(block_truncate_page); · 2878 unmodified lines |
| 2879 | 2879 | |
| 2880 | 2880 | /* |
| 2881 | 2881 | * The generic ->writepage function for buffer-backed address_spaces |
| 2882 | | − * this form passes in the end_io handler used to finish the IO. |
| 2883 | 2882 | */ |
| 2884 | | −int block_write_full_page_endio(struct page *page, get_block_t *get_block, |
| 2885 | | − struct writeback_control *wbc, bh_end_io_t *handler) |
| 2883 | +int block_write_full_page(struct page *page, get_block_t *get_block, |
| 2884 | + struct writeback_control *wbc) |
| 2886 | 2885 | { |
| 2887 | 2886 | struct inode * const inode = page->mapping->host; |
| 2888 | 2887 | loff_t i_size = i_size_read(inode); |
| @@ -2892,7 +2891,7 @@ int block_write_full_page_endio(struct page *page, get_block_t *get_block, · 3 unmodified lines |
| 2892 | 2891 | /* Is the page fully inside i_size? */ |
| 2893 | 2892 | if (page->index < end_index) |
| 2894 | 2893 | return __block_write_full_page(inode, page, get_block, wbc, |
| 2895 | | − handler); |
| 2894 | + end_buffer_async_write); |
| 2896 | 2895 | |
| 2897 | 2896 | /* Is the page fully outside i_size? (truncate in progress) */ |
| 2898 | 2897 | offset = i_size & (PAGE_CACHE_SIZE-1); |
| @@ -2915,18 +2914,8 @@ int block_write_full_page_endio(struct page *page, get_block_t *get_block, · 16 unmodified lines |
| 2915 | 2914 | * writes to that region are not written out to the file." |
| 2916 | 2915 | */ |
| 2917 | 2916 | zero_user_segment(page, offset, PAGE_CACHE_SIZE); |
| 2918 | | − return __block_write_full_page(inode, page, get_block, wbc, handler); |
| 2919 | | −} |
| 2920 | | −EXPORT_SYMBOL(block_write_full_page_endio); |
| 2921 | | − |
| 2922 | | −/* |
| 2923 | | − * The generic ->writepage function for buffer-backed address_spaces |
| 2924 | | − */ |
| 2925 | | −int block_write_full_page(struct page *page, get_block_t *get_block, |
| 2926 | | − struct writeback_control *wbc) |
| 2927 | | −{ |
| 2928 | | − return block_write_full_page_endio(page, get_block, wbc, |
| 2929 | | − end_buffer_async_write); |
| 2917 | + return __block_write_full_page(inode, page, get_block, wbc, |
| 2918 | + end_buffer_async_write); |
| 2930 | 2919 | } |
| 2931 | 2920 | EXPORT_SYMBOL(block_write_full_page); |
| 2932 | 2921 | |