Loading fs/btrfs/extent_io.c +4 −6 Original line number Diff line number Diff line Loading @@ -3906,8 +3906,7 @@ int btree_write_cache_pages(struct address_space *mapping, */ static int extent_write_cache_pages(struct address_space *mapping, struct writeback_control *wbc, writepage_t writepage, void *data, void (*flush_fn)(void *)) writepage_t writepage, void *data) { struct inode *inode = mapping->host; int ret = 0; Loading Loading @@ -3971,7 +3970,7 @@ static int extent_write_cache_pages(struct address_space *mapping, * mapping */ if (!trylock_page(page)) { flush_fn(data); flush_write_bio(data); lock_page(page); } Loading @@ -3982,7 +3981,7 @@ static int extent_write_cache_pages(struct address_space *mapping, if (wbc->sync_mode != WB_SYNC_NONE) { if (PageWriteback(page)) flush_fn(data); flush_write_bio(data); wait_on_page_writeback(page); } Loading Loading @@ -4123,8 +4122,7 @@ int extent_writepages(struct extent_io_tree *tree, .sync_io = wbc->sync_mode == WB_SYNC_ALL, }; ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd, flush_write_bio); ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd); flush_write_bio(&epd); return ret; } Loading Loading
fs/btrfs/extent_io.c +4 −6 Original line number Diff line number Diff line Loading @@ -3906,8 +3906,7 @@ int btree_write_cache_pages(struct address_space *mapping, */ static int extent_write_cache_pages(struct address_space *mapping, struct writeback_control *wbc, writepage_t writepage, void *data, void (*flush_fn)(void *)) writepage_t writepage, void *data) { struct inode *inode = mapping->host; int ret = 0; Loading Loading @@ -3971,7 +3970,7 @@ static int extent_write_cache_pages(struct address_space *mapping, * mapping */ if (!trylock_page(page)) { flush_fn(data); flush_write_bio(data); lock_page(page); } Loading @@ -3982,7 +3981,7 @@ static int extent_write_cache_pages(struct address_space *mapping, if (wbc->sync_mode != WB_SYNC_NONE) { if (PageWriteback(page)) flush_fn(data); flush_write_bio(data); wait_on_page_writeback(page); } Loading Loading @@ -4123,8 +4122,7 @@ int extent_writepages(struct extent_io_tree *tree, .sync_io = wbc->sync_mode == WB_SYNC_ALL, }; ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd, flush_write_bio); ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd); flush_write_bio(&epd); return ret; } Loading