Skip to content

Commit

Permalink
Btrfs: Make truncate(2) more ENOSPC friendly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yan, Zheng authored and Chris Mason committed Dec 17, 2009
1 parent 5a303d5 commit 8082510
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 137 deletions.
Loading

0 comments on commit 8082510

Please sign in to comment.