Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure uio to accommodate bio_vec
Starting from Linux 4.1, bio_vec will be allowed to pass into filesystem via iter_read/iter_write, so we add a bio_vec field in uio_t to hold it, and use UIO_BVEC in segflg to determine which "vec". Also, to be consistent to newer kernel, we make iovec and bio_vec immutable, and make uio act as an iterator with the new uio_skip field indicating number of bytes to skip in the first segment. Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
- Loading branch information
This header should include
linux/blkdev.h
because we're now using thebio_vec
struct. This actually causes a build failure on 2.6.32 kernels. For newer kernels we just happen to pick up the required header indirectly so there's no build failure.