Miguel Sousa Filipe
2008-Apr-05 19:45 UTC
[Btrfs-devel] [PATCH] bio_endio support for linux 2.6.23 and older.
Hi there, bio_endio() changed prototype on linux 2.6.24, support older kernels using the older prototype. diff -r 4b838034355c volumes.c --- a/volumes.c Sat Apr 05 19:06:30 2008 +0100 +++ b/volumes.c Sat Apr 05 20:41:15 2008 +0100 @@ -912,7 +912,11 @@ static int end_bio_multi_stripe(struct b err = multi->error; kfree(multi); +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23) + bio_endio(bio, bio->bi_size, err); +#else bio_endio(bio, err); +#endif } else { bio_put(bio); } Kind regards, -- Miguel Sousa Filipe
Possibly Parallel Threads
- Trying to compile DAHDI on Pidora 2014 (RPi)
- [PATCH] Eliminate kernel version checks from i386/kernel/pci-dma.c
- [PATCH] dcache.c polishing
- [PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
- [PATCH 2/3] Move COMPAT_csum_offset to kernels < .24 Also add #else for initializing the virtio_net_hdr