mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-24 18:16:04 +00:00
Btrfs: Add a write ahead tree log to optimize synchronous operations
File syncs and directory syncs are optimized by copying their items into a special (copy-on-write) log tree. There is one log tree per subvolume and the btrfs super block points to a tree of log tree roots. After a crash, items are copied out of the log tree and back into the subvolume. See tree-log.c for all the details. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
a1b32a5932
commit
e02119d5a7
17 changed files with 3408 additions and 205 deletions
261
fs/btrfs/inode.c
261
fs/btrfs/inode.c
2804
fs/btrfs/tree-log.c
2804
fs/btrfs/tree-log.c
Loading…
Add table
Add a link
Reference in a new issue