mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
config: remove HAVE_FALLOC_FL_ZERO_RANGE
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:
@@ -833,10 +833,7 @@ zpl_fallocate_common(struct inode *ip, int mode, loff_t offset, loff_t len)
|
||||
fstrans_cookie_t cookie;
|
||||
int error = 0;
|
||||
|
||||
int test_mode = FALLOC_FL_PUNCH_HOLE;
|
||||
#ifdef HAVE_FALLOC_FL_ZERO_RANGE
|
||||
test_mode |= FALLOC_FL_ZERO_RANGE;
|
||||
#endif
|
||||
int test_mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE;
|
||||
|
||||
if ((mode & ~(FALLOC_FL_KEEP_SIZE | test_mode)) != 0)
|
||||
return (-EOPNOTSUPP);
|
||||
|
||||
Reference in New Issue
Block a user