diff options
-rw-r--r-- | fs/btrfs/disk-io.c | 5 | ||||
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 0bfcc31d94d7..aebe8c21ec80 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -949,11 +949,14 @@ void btrfs_end_io_csum(struct work_struct *work) | |||
949 | bio->bi_private = end_io_wq->private; | 949 | bio->bi_private = end_io_wq->private; |
950 | bio->bi_end_io = end_io_wq->end_io; | 950 | bio->bi_end_io = end_io_wq->end_io; |
951 | kfree(end_io_wq); | 951 | kfree(end_io_wq); |
952 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23) | ||
953 | bio_endio(bio, bio->bi_size, err); | ||
954 | #else | ||
952 | bio_endio(bio, error); | 955 | bio_endio(bio, error); |
956 | #endif | ||
953 | } | 957 | } |
954 | } | 958 | } |
955 | 959 | ||
956 | |||
957 | struct btrfs_root *open_ctree(struct super_block *sb, | 960 | struct btrfs_root *open_ctree(struct super_block *sb, |
958 | struct btrfs_fs_devices *fs_devices) | 961 | struct btrfs_fs_devices *fs_devices) |
959 | { | 962 | { |
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 07d43553141c..82bc6cfc110f 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -960,7 +960,11 @@ static int end_bio_multi_stripe(struct bio *bio, | |||
960 | err = multi->error; | 960 | err = multi->error; |
961 | kfree(multi); | 961 | kfree(multi); |
962 | 962 | ||
963 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23) | ||
964 | bio_endio(bio, bio->bi_size, err); | ||
965 | #else | ||
963 | bio_endio(bio, err); | 966 | bio_endio(bio, err); |
967 | #endif | ||
964 | } else { | 968 | } else { |
965 | bio_put(bio); | 969 | bio_put(bio); |
966 | } | 970 | } |