]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Make truncate(2) more ENOSPC friendly
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:35:36 +0000 (09:35 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 17 Dec 2009 17:33:34 +0000 (12:33 -0500)
commita19ad65af403404ea61103d6b6ce253481654203
treee9f0a0a4504a87689b4765368b508fff5ae2ddf8
parent4f3a9f6461ee3bec6686ed5df6a72928ddfa1022
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>
fs/btrfs/inode.c
fs/btrfs/relocation.c