On Tue, Jun 14, 2016 at 12:41:08PM +0530, Chandan Rajendra wrote: > In non-subpage-blocksize scenario, BTRFS_HEADER_FLAG_WRITTEN flag > prevents Btrfs code from writing into an extent buffer whose pages are > under writeback. This facility isn't sufficient for achieving the same > in subpage-blocksize scenario, since we have more than one extent buffer > mapped to a page. > > Hence this patch adds a new flag (i.e. EXTENT_BUFFER_HEAD_WRITEBACK) and > corresponding code to track the writeback status of the page and to > prevent writes to any of the extent buffers mapped to the page while > writeback is going on. > > Signed-off-by: Chandan Rajendra <chan...@linux.vnet.ibm.com>
This patch has a minor conflict with patch merged into 4.7-rc4 and I'm not sure if the resolution is correct. btrfs: account for non-CoW'd blocks in btrfs_abort_transaction 64c12921e11b3a0c10d088606e328c58e29274d8 introduces trans->dirty, the conflicts are in btrfs_cow_block and btrfs_search_slot. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html