Skip to content
Commit 07d400a6 authored by Yan Zheng's avatar Yan Zheng Committed by Chris Mason
Browse files

Btrfs: tree logging checksum fixes



This patch contains following things.

1) Limit the max size of btrfs_ordered_sum structure to PAGE_SIZE.  This
struct is kmalloced so we want to keep it reasonable.

2) Replace copy_extent_csums by btrfs_lookup_csums_range.  This was
duplicated code in tree-log.c

3) Remove replay_one_csum. csum items are replayed at the same time as
   replaying file extents. This guarantees we only replay useful csums.

4) nbytes accounting fix.

Signed-off-by: default avatarYan Zheng <zheng.yan@oracle.com>
parent 1ba12553
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment