Re: [f2fs-dev] [PATCH v5 1/2] f2fs: add F2FS_IOC_GET_COMPRESS_OPTION ioctl
From: Daeho Jeong
Date: Thu Oct 29 2020 - 23:25:21 EST
Opps, I missed this.
We need v7... lol
2020년 10월 30일 (금) 오전 11:37, Chao Yu <yuchao0@xxxxxxxxxx>님이 작성:
>
> On 2020/10/29 15:24, Chao Yu wrote:
> > On 2020/10/29 12:15, Daeho Jeong wrote:
>
> >> + inode_lock(inode);
> >
> > It's minor,
> >
> > inode_lock_shared()?
> >
> >> +
> >> + if (!f2fs_compressed_file(inode)) {
> >> + inode_unlock(inode);
> >
> > inode_unlock_shared()?
> >
> >> + return -ENODATA;
> >> + }
> >> +
> >> + option.algorithm = F2FS_I(inode)->i_compress_algorithm;
> >> + option.log_cluster_size = F2FS_I(inode)->i_log_cluster_size;
> >> +
> >> + inode_unlock(inode);
> >
> > ditto.
>
> Any comments?
>
> Thanks,