Re: [PATCH 2/2] Btrfs: be aware of btree inode write errors to avoid fs corruption

2014-09-23 Thread Liu Bo
On Mon, Sep 22, 2014 at 05:41:05PM +0100, Filipe Manana wrote: While we have a transaction ongoing, the VM might decide at any time to call btree_inode-i_mapping-a_ops-writepages(), which will start writeback of dirty pages belonging to btree nodes/leafs. This call might return an error or the

Re: [PATCH 2/2] Btrfs: be aware of btree inode write errors to avoid fs corruption

2014-09-23 Thread Filipe David Manana
On Tue, Sep 23, 2014 at 3:05 PM, Liu Bo bo.li@oracle.com wrote: On Mon, Sep 22, 2014 at 05:41:05PM +0100, Filipe Manana wrote: While we have a transaction ongoing, the VM might decide at any time to call btree_inode-i_mapping-a_ops-writepages(), which will start writeback of dirty pages

[PATCH 2/2] Btrfs: be aware of btree inode write errors to avoid fs corruption

2014-09-22 Thread Filipe Manana
While we have a transaction ongoing, the VM might decide at any time to call btree_inode-i_mapping-a_ops-writepages(), which will start writeback of dirty pages belonging to btree nodes/leafs. This call might return an error or the writeback might finish with an error before we attempt to commit