search for: btree_readpage_end_io_hook

Displaying 7 results from an estimated 7 matches for "btree_readpage_end_io_hook".

2010 Dec 01
2
[RFC PATCH 4/4 v2] Btrfs: deal with filesystem state at mount, umount
...s_state & BTRFS_SUPER_FLAG_ERROR) + printk(KERN_WARNING "warning: mount fs with errors, " + "running btfsck is recommended\n"); +} + static struct extent_io_ops btree_extent_io_ops = { .write_cache_pages_lock_hook = btree_lock_page_hook, .readpage_end_io_hook = btree_readpage_end_io_hook, -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
2013 Apr 22
0
[PATCH] Btrfs: don't call readahead hook until we have read the entire eb
...ff-by: Josef Bacik <jbacik@fusionio.com> --- fs/btrfs/disk-io.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index fa8438f..f4628c7 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -674,10 +674,9 @@ static int btree_readpage_end_io_hook(struct page *page, u64 start, u64 end, if (!ret) set_extent_buffer_uptodate(eb); err: - if (test_bit(EXTENT_BUFFER_READAHEAD, &eb->bflags)) { - clear_bit(EXTENT_BUFFER_READAHEAD, &eb->bflags); + if (reads_done && + test_and_clear_bit(EXTENT_BUFFER_READAHEAD, &eb...
2012 Nov 22
0
raid10 data fs full after degraded mount
...: [ 2898.699654] [<ffffffff8103cd4c>] ? warn_slowpath_common+0x76/0x8a [ 2898.699668] [<ffffffffa0192181>] ? btrfs_alloc_free_block+0xeb/0x2a0 [btrfs] [ 2898.699687] [<ffffffffa01b76fc>] ? read_extent_buffer_pages+0x1fb/0x247 [btrfs] [ 2898.699703] [<ffffffffa019ab85>] ? btree_readpage_end_io_hook+0x1d9/0x1d9 [btrfs] [ 2898.699715] [<ffffffffa0184461>] ? __btrfs_cow_block+0xf2/0x372 [btrfs] [ 2898.699726] [<ffffffffa018480d>] ? btrfs_cow_block+0xf1/0x141 [btrfs] [ 2898.699738] [<ffffffffa01873e5>] ? btrfs_search_slot+0x234/0x660 [btrfs] [ 2898.699752] [<ffffffffa0196...
2012 Dec 18
0
[PATCH] [RFC] Btrfs: Subpagesize blocksize (WIP).
...644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -373,6 +373,24 @@ static int btree_read_extent_buffer_pages(struct btrfs_root *root, WAIT_COMPLETE, btree_get_extent, mirror_num); if (!ret) { + /* + * I think that this is bad and should be moved + * into btree_readpage_end_io_hook(), but that + * it should apply to a single block at a time. + * That may be difficult and would make the + * function name a misnomer, but mostly I hate + * the silly goto. + */ + if (eb->len < PAGE_SIZE && + !extent_buffer_uptodate(eb)) { + if (csum_tree_bl...
2012 Jan 11
5
Warning: bad fsid on block 20971520
Hi, the $subj warning appears sometimes in syslog, in my case when xfstests/209 runs looped. The minimal reproducer is looped mkfs+mount. The message comes from disk-io.c btree_readpage_end_io_hook(): 581 if (check_tree_block_fsid(root, eb)) { 582 printk_ratelimited(KERN_INFO "btrfs bad fsid on block %llu\n", 583 (unsigned long long)eb->start); 584 ret = -EIO; 585 goto err; 586 } rele...
2011 Jun 10
6
[PATCH v2 0/6] btrfs: generic readeahead interface
This series introduces a generic readahead interface for btrfs trees. The intention is to use it to speed up scrub in a first run, but balance is another hot candidate. In general, every tree walk could be accompanied by a readahead. Deletion of large files comes to mind, where the fetching of the csums takes most of the time. Also the initial build-ups of free-space-caches and
2011 Jun 29
14
[PATCH v4 0/6] btrfs: generic readeahead interface
This series introduces a generic readahead interface for btrfs trees. The intention is to use it to speed up scrub in a first run, but balance is another hot candidate. In general, every tree walk could be accompanied by a readahead. Deletion of large files comes to mind, where the fetching of the csums takes most of the time. Also the initial build-ups of free-space-caches and