Re: [PATCH v2 2/2] exfat: add support FITRIM ioctl

From: Hyeongseok Kim
Date: Tue Feb 16 2021 - 19:18:59 EST


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