Re: [PATCH 6/7] Btrfs: fix corrupted metadata in the snapshot

2012-09-05 Thread David Sterba
On Wed, Aug 29, 2012 at 12:13:16PM +0800, Miao Xie wrote: When we delete a inode, we will remove all the delayed items including delayed inode update, and then truncate all the relative metadata. If there is lots of metadata, we will end the current transaction, and start a new transaction to

Re: [PATCH 6/7] Btrfs: fix corrupted metadata in the snapshot

2012-09-05 Thread Josef Bacik
On Wed, Sep 05, 2012 at 10:32:05AM -0600, David Sterba wrote: On Wed, Aug 29, 2012 at 12:13:16PM +0800, Miao Xie wrote: When we delete a inode, we will remove all the delayed items including delayed inode update, and then truncate all the relative metadata. If there is lots of

[PATCH 6/7] Btrfs: fix corrupted metadata in the snapshot

2012-08-28 Thread Miao Xie
When we delete a inode, we will remove all the delayed items including delayed inode update, and then truncate all the relative metadata. If there is lots of metadata, we will end the current transaction, and start a new transaction to truncate the left metadata. In this way, we will leave a inode