From: Yan, Zheng Date: Thu, 12 Nov 2009 09:35:36 +0000 (+0000) Subject: Btrfs: Make truncate(2) more ENOSPC friendly X-Git-Tag: v2.6.33-rc1~7^2~1^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8082510e7124cc50d728f1b875639cb4e22312cc;p=pandora-kernel.git Btrfs: Make truncate(2) more ENOSPC friendly truncating and deleting regular files are unbound operations, so it's not good to do them in a single transaction. This patch makes btrfs_truncate and btrfs_delete_inode start a new transaction after all items in a tree leaf are deleted. Signed-off-by: Yan Zheng Signed-off-by: Chris Mason --- Reading git-diff-tree failed