search for: can_nocow_odirect

Displaying 4 results from an estimated 4 matches for "can_nocow_odirect".

2012 Oct 01
1
[RFC] [PATCH] Btrfs: rework can_nocow_odirect
...this with a fine toothed comb since it is a pretty big change. I think it is right and it seems to come out right, but if it''s not it will mean we screw up O_DIRECT on snapshotted files with preallocated extents, so please, make sure it is correct :). --- Subject: [PATCH] Btrfs: rework can_nocow_odirect We are always doing the file extent lookup in here even though we''ve already done the btrfs_get_extent which does the exact same thing. So re-work can_nocow_odirect to get the same information out of the extent_map we already have and then do the cross ref check and csum checks as approp...
2012 Sep 12
2
Deadlock in btrfs-cleaner, related to snapshot deletion
...[btrfs] [ 386.319503] [<ffffffff8107ccd0>] ? add_wait_queue+0x60/0x60 [ 386.319542] [<ffffffffa0102873>] lock_extent_buffer_for_io+0x103/0x260 [btrfs] [ 386.319581] [<ffffffffa010862c>] btree_write_cache_pages+0x21c/0x410 [btrfs] [ 386.319619] [<ffffffffa00f1e40>] ? can_nocow_odirect+0x2b0/0x2b0 [btrfs] [ 386.319654] [<ffffffffa00e4a6b>] btree_writepages+0x3b/0x40 [btrfs] [ 386.319661] [<ffffffff81138450>] do_writepages+0x20/0x40 [ 386.319670] [<ffffffff811af12f>] __writeback_single_inode.isra.32+0x3f/0x190 [ 386.319678] [<ffffffff811af850>] writ...
2013 Oct 05
10
Linux Arch: kernel BUG at fs/btrfs/inode.c:873!
...7772] [<ffffffff81122645>] ? find_get_pages_tag+0x105/0x180 [ 68.127813] [<ffffffffa0487722>] extent_write_cache_pages.isra.32.constprop.48+0x282/0x3e0 [btrfs] [ 68.127867] [<ffffffffa0487b7d>] extent_writepages+0x4d/0x70 [btrfs] [ 68.127909] [<ffffffffa046e080>] ? can_nocow_odirect+0x2f0/0x2f0 [btrfs] [ 68.127951] [<ffffffffa046cf28>] btrfs_writepages+0x28/0x30 [btrfs] [ 68.127985] [<ffffffff8112e28e>] do_writepages+0x1e/0x40 [ 68.128014] [<ffffffff81123669>] __filemap_fdatawrite_range+0x59/0x60 [ 68.128048] [<ffffffff81123733>] filemap_fda...
2012 Jun 21
0
[RFC PATCH V2] Btrfs: introduce extent buffer cache for each i-node
...p;local_index); } return ret; } @@ -5247,7 +5250,7 @@ again: } ret = btrfs_lookup_file_extent(trans, root, path, - objectid, start, trans != NULL); + inode, start, trans != NULL); if (ret < 0) { err = ret; goto out; @@ -5716,7 +5719,7 @@ static noinline int can_nocow_odirect(struct btrfs_trans_handle *trans, if (!path) return -ENOMEM; - ret = btrfs_lookup_file_extent(trans, root, path, btrfs_ino(inode), + ret = btrfs_lookup_file_extent(trans, root, path, inode, offset, 0); if (ret < 0) goto out; @@ -6957,6 +6960,9 @@ struct inode *btrfs_alloc...