mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	config: remove HAVE_GENERIC_IO_ACCT_3ARG
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
		
							parent
							
								
									9076aecb4e
								
							
						
					
					
						commit
						d30056887e
					
				| @ -49,18 +49,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_GENERIC_IO_ACCT], [ | ||||
| 		bio_end_io_acct(bio, start_time); | ||||
| 	]) | ||||
| 
 | ||||
| 	ZFS_LINUX_TEST_SRC([generic_acct_3args], [ | ||||
| 		#include <linux/bio.h> | ||||
| 
 | ||||
| 		void (*generic_start_io_acct_f)(int, unsigned long, | ||||
| 		    struct hd_struct *) = &generic_start_io_acct; | ||||
| 		void (*generic_end_io_acct_f)(int, struct hd_struct *, | ||||
| 		    unsigned long) = &generic_end_io_acct; | ||||
| 	], [ | ||||
| 		generic_start_io_acct(0, 0, NULL); | ||||
| 		generic_end_io_acct(0, NULL, 0); | ||||
| 	]) | ||||
| 
 | ||||
| 	ZFS_LINUX_TEST_SRC([generic_acct_4args], [ | ||||
| 		#include <linux/bio.h> | ||||
| 
 | ||||
| @ -138,23 +126,6 @@ AC_DEFUN([ZFS_AC_KERNEL_GENERIC_IO_ACCT], [ | ||||
| 						    [generic_*_io_acct() 4 arg available]) | ||||
| 					], [ | ||||
| 						AC_MSG_RESULT(no) | ||||
| 
 | ||||
| 						dnl # | ||||
| 						dnl # 3.19 API addition | ||||
| 						dnl # | ||||
| 						dnl # torvalds/linux@394ffa50 allows us to increment | ||||
| 						dnl # iostat counters without generic_make_request(). | ||||
| 						dnl # | ||||
| 						AC_MSG_CHECKING( | ||||
| 						    [whether generic_*_io_acct wants 3 args]) | ||||
| 						ZFS_LINUX_TEST_RESULT_SYMBOL([generic_acct_3args], | ||||
| 						    [generic_start_io_acct], [block/bio.c], [ | ||||
| 							AC_MSG_RESULT(yes) | ||||
| 							AC_DEFINE(HAVE_GENERIC_IO_ACCT_3ARG, 1, | ||||
| 							    [generic_*_io_acct() 3 arg available]) | ||||
| 						], [ | ||||
| 							AC_MSG_RESULT(no) | ||||
| 						]) | ||||
| 					]) | ||||
| 				]) | ||||
| 			]) | ||||
|  | ||||
| @ -466,10 +466,6 @@ blk_generic_start_io_acct(struct request_queue *q __attribute__((unused)), | ||||
| 	return (disk_start_io_acct(disk, bio_sectors(bio), bio_op(bio))); | ||||
| #elif defined(HAVE_BIO_IO_ACCT) | ||||
| 	return (bio_start_io_acct(bio)); | ||||
| #elif defined(HAVE_GENERIC_IO_ACCT_3ARG) | ||||
| 	unsigned long start_time = jiffies; | ||||
| 	generic_start_io_acct(rw, bio_sectors(bio), &disk->part0); | ||||
| 	return (start_time); | ||||
| #elif defined(HAVE_GENERIC_IO_ACCT_4ARG) | ||||
| 	unsigned long start_time = jiffies; | ||||
| 	generic_start_io_acct(q, rw, bio_sectors(bio), &disk->part0); | ||||
| @ -494,8 +490,6 @@ blk_generic_end_io_acct(struct request_queue *q __attribute__((unused)), | ||||
| 	disk_end_io_acct(disk, bio_op(bio), start_time); | ||||
| #elif defined(HAVE_BIO_IO_ACCT) | ||||
| 	bio_end_io_acct(bio, start_time); | ||||
| #elif defined(HAVE_GENERIC_IO_ACCT_3ARG) | ||||
| 	generic_end_io_acct(rw, &disk->part0, start_time); | ||||
| #elif defined(HAVE_GENERIC_IO_ACCT_4ARG) | ||||
| 	generic_end_io_acct(q, rw, &disk->part0, start_time); | ||||
| #endif | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rob Norris
						Rob Norris