-
- Downloads
Btrfs: Avoid superfluous tree-log writeout
We allow two log transactions at a time, but use same flag to mark dirty tree-log btree blocks. So we may flush dirty blocks belonging to newer log transaction when committing a log transaction. This patch fixes the issue by using two flags to mark dirty tree-log btree blocks. Signed-off-by:Yan Zheng <zheng.yan@oracle.com> Signed-off-by:
Chris Mason <chris.mason@oracle.com>
Showing
- fs/btrfs/disk-io.c 3 additions, 3 deletionsfs/btrfs/disk-io.c
- fs/btrfs/extent-tree.c 10 additions, 2 deletionsfs/btrfs/extent-tree.c
- fs/btrfs/transaction.c 11 additions, 10 deletionsfs/btrfs/transaction.c
- fs/btrfs/transaction.h 3 additions, 3 deletionsfs/btrfs/transaction.h
- fs/btrfs/tree-log.c 20 additions, 13 deletionsfs/btrfs/tree-log.c
Loading
Please register or sign in to comment