Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: target: Rename target_configure_unmap_from_queue()

Rename target_configure_unmap_from_queue() to
target_configure_unmap_from_bdev() since it now takes a bdev.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20251020103820.2917593-2-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Mike Christie and committed by
Martin K. Petersen
3434be39 3a866087

+9 -9
+3 -3
drivers/target/target_core_device.c
··· 844 844 * Check if the underlying struct block_device supports discard and if yes 845 845 * configure the UNMAP parameters. 846 846 */ 847 - bool target_configure_unmap_from_queue(struct se_dev_attrib *attrib, 848 - struct block_device *bdev) 847 + bool target_configure_unmap_from_bdev(struct se_dev_attrib *attrib, 848 + struct block_device *bdev) 849 849 { 850 850 int block_size = bdev_logical_block_size(bdev); 851 851 ··· 863 863 bdev_discard_alignment(bdev) / block_size; 864 864 return true; 865 865 } 866 - EXPORT_SYMBOL(target_configure_unmap_from_queue); 866 + EXPORT_SYMBOL(target_configure_unmap_from_bdev); 867 867 868 868 /* 869 869 * Convert from blocksize advertised to the initiator to the 512 byte
+2 -2
drivers/target/target_core_file.c
··· 92 92 struct inode *inode = file->f_mapping->host; 93 93 94 94 if (S_ISBLK(inode->i_mode)) 95 - return target_configure_unmap_from_queue(&dev->dev_attrib, 96 - I_BDEV(inode)); 95 + return target_configure_unmap_from_bdev(&dev->dev_attrib, 96 + I_BDEV(inode)); 97 97 98 98 /* Limit UNMAP emulation to 8k Number of LBAs (NoLB) */ 99 99 dev->dev_attrib.max_unmap_lba_count = 0x2000;
+2 -2
drivers/target/target_core_iblock.c
··· 84 84 { 85 85 struct iblock_dev *ib_dev = IBLOCK_DEV(dev); 86 86 87 - return target_configure_unmap_from_queue(&dev->dev_attrib, 88 - ib_dev->ibd_bd); 87 + return target_configure_unmap_from_bdev(&dev->dev_attrib, 88 + ib_dev->ibd_bd); 89 89 } 90 90 91 91 static int iblock_configure_device(struct se_device *dev)
+2 -2
include/target/target_core_backend.h
··· 121 121 122 122 bool target_sense_desc_format(struct se_device *dev); 123 123 sector_t target_to_linux_sector(struct se_device *dev, sector_t lb); 124 - bool target_configure_unmap_from_queue(struct se_dev_attrib *attrib, 125 - struct block_device *bdev); 124 + bool target_configure_unmap_from_bdev(struct se_dev_attrib *attrib, 125 + struct block_device *bdev); 126 126 127 127 static inline bool target_dev_configured(struct se_device *se_dev) 128 128 {