extent_io.c (04bf7869ca0fd12009aee301cac2264a36df4d98) extent_io.c (d46db3d58233be4be980eb1e42eebe7808bcabab)
1#include <linux/bitops.h>
2#include <linux/slab.h>
3#include <linux/bio.h>
4#include <linux/mm.h>
5#include <linux/pagemap.h>
6#include <linux/page-flags.h>
7#include <linux/module.h>
8#include <linux/spinlock.h>

--- 2537 unchanged lines hidden (view full) ---

2546 .bio = NULL,
2547 .tree = tree,
2548 .get_extent = get_extent,
2549 .extent_locked = 0,
2550 .sync_io = wbc->sync_mode == WB_SYNC_ALL,
2551 };
2552 struct writeback_control wbc_writepages = {
2553 .sync_mode = wbc->sync_mode,
1#include <linux/bitops.h>
2#include <linux/slab.h>
3#include <linux/bio.h>
4#include <linux/mm.h>
5#include <linux/pagemap.h>
6#include <linux/page-flags.h>
7#include <linux/module.h>
8#include <linux/spinlock.h>

--- 2537 unchanged lines hidden (view full) ---

2546 .bio = NULL,
2547 .tree = tree,
2548 .get_extent = get_extent,
2549 .extent_locked = 0,
2550 .sync_io = wbc->sync_mode == WB_SYNC_ALL,
2551 };
2552 struct writeback_control wbc_writepages = {
2553 .sync_mode = wbc->sync_mode,
2554 .older_than_this = NULL,
2555 .nr_to_write = 64,
2556 .range_start = page_offset(page) + PAGE_CACHE_SIZE,
2557 .range_end = (loff_t)-1,
2558 };
2559
2560 ret = __extent_writepage(page, wbc, &epd);
2561
2562 extent_write_cache_pages(tree, mapping, &wbc_writepages,

--- 16 unchanged lines hidden (view full) ---

2579 .bio = NULL,
2580 .tree = tree,
2581 .get_extent = get_extent,
2582 .extent_locked = 1,
2583 .sync_io = mode == WB_SYNC_ALL,
2584 };
2585 struct writeback_control wbc_writepages = {
2586 .sync_mode = mode,
2554 .nr_to_write = 64,
2555 .range_start = page_offset(page) + PAGE_CACHE_SIZE,
2556 .range_end = (loff_t)-1,
2557 };
2558
2559 ret = __extent_writepage(page, wbc, &epd);
2560
2561 extent_write_cache_pages(tree, mapping, &wbc_writepages,

--- 16 unchanged lines hidden (view full) ---

2578 .bio = NULL,
2579 .tree = tree,
2580 .get_extent = get_extent,
2581 .extent_locked = 1,
2582 .sync_io = mode == WB_SYNC_ALL,
2583 };
2584 struct writeback_control wbc_writepages = {
2585 .sync_mode = mode,
2587 .older_than_this = NULL,
2588 .nr_to_write = nr_pages * 2,
2589 .range_start = start,
2590 .range_end = end + 1,
2591 };
2592
2593 while (start <= end) {
2594 page = find_get_page(mapping, start >> PAGE_CACHE_SHIFT);
2595 if (clear_page_dirty_for_io(page))

--- 1295 unchanged lines hidden ---
2586 .nr_to_write = nr_pages * 2,
2587 .range_start = start,
2588 .range_end = end + 1,
2589 };
2590
2591 while (start <= end) {
2592 page = find_get_page(mapping, start >> PAGE_CACHE_SHIFT);
2593 if (clear_page_dirty_for_io(page))

--- 1295 unchanged lines hidden ---