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

2021-02-16 Thread Hyeongseok Kim
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

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

2021-02-16 Thread Chaitanya Kulkarni
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. > + struct request_queue *q = bdev_get_queue(sb->s_bdev); >

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

2021-02-16 Thread Hyeongseok Kim
add FITRIM ioctl to support trimming mounted filesystem Signed-off-by: Hyeongseok Kim --- fs/exfat/balloc.c | 81 + fs/exfat/exfat_fs.h | 1 + fs/exfat/file.c | 33 ++ 3 files changed, 115 insertions(+) diff --git a/fs/exfat/bal