commit | 8082510e7124cc50d728f1b875639cb4e22312cc | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.yan@oracle.com> | Thu Nov 12 09:35:36 2009 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Dec 17 12:33:34 2009 -0500 |
tree | e9f0a0a4504a87689b4765368b508fff5ae2ddf8 | |
parent | 5a303d5d4b8055d2e5a03e92d04745bfc5881a22 [diff] |
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 <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>