On 2/16/21 14:36, Hyeongseok Kim wrote:I got it. You're right.
+static int exfat_ioctl_fitrim(struct inode *inode, unsigned long arg)Do you really need sb variable ? it is only used once if I'm not wrong.
+{
+ struct super_block *sb = inode->i_sb;
+ struct request_queue *q = bdev_get_queue(sb->s_bdev);
+ struct fstrim_range range;
+ int ret = 0;