Whamcloud - gitweb
LU-15544 osd-ldiskfs: Update bio_set_dev and BIO_MAX_VECS 35/49135/5
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 11 Nov 2022 08:19:53 +0000 (02:19 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Dec 2022 02:44:14 +0000 (02:44 +0000)
commit2edde0147bcbff7d21656fe4b964705be44ad5cc
tree9d0c850034cdc44ebdacaf632cc52081d234d16c
parent77107d8e78ffd952af7882a160c84012aea0e22b
LU-15544 osd-ldiskfs: Update bio_set_dev and BIO_MAX_VECS

Linux commit v5.11-rc5-9-g309dca309fc3
  block: store a block_device pointer in struct bio
created bio_set_dev macro and
Linux commit v5.15-rc6-127-gcf6d6238cdd3
  block: turn macro helpers into inline functions
change the macro to an inline function for bio_set_dev.
This change tests for bio_set_dev and provides one, if one
is not provided by the kernel.

Linux commit v5.12-rc1-20-ga8affc03a9b3
   block: rename BIO_MAX_PAGES to BIO_MAX_VECS
This change provide a fallback for older kernels when
BIO_MAX_VECS is not defined.

Linux commit v5.11-rc4-8-g5857c9209ce5
  mm: Mark anonymous struct field of 'struct vm_fault' as 'const'
Breaks and exisiting configure test for vm_fault.address
This changes the configure test for vm_fault.address so it does
not fail due to address being const

Test-Parameters: trivial
HPE-bug-id: LUS-10744
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I06d3bf60e32b969e1e635e378cbd1ee36293165c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49135
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c