]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: raid56: Use raid_write_end_io for scrub
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 12 Jan 2016 09:52:13 +0000 (17:52 +0800)
committerChris Mason <clm@fb.com>
Wed, 20 Jan 2016 15:22:18 +0000 (07:22 -0800)
commit4d6282768561a71e0a88f44221e7bd3418c18bf1
tree0a0aa9c0ee14665dbe0f3d436aaeedb90f6d198a
parentbc32fdff00ffe88f0286b366fdde4ea828fece13
btrfs: raid56: Use raid_write_end_io for scrub

No need to create additional end_io function for scrub, it increased
code size and introduced some un-unified lines, as:
raid_write_parity_end_io():
        int err = bio->bi_error;
        if (bio->bi_error)
raid_write_end_io():
        int err = bio->bi_error;
        if (err)

This patch combines them.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/raid56.c