From: Chao Yu <yuchao0@huawei.com>
To: Daeho Jeong <daeho43@gmail.com>, <linux-kernel@vger.kernel.org>,
<linux-f2fs-devel@lists.sourceforge.net>,
<kernel-team@android.com>
Cc: Daeho Jeong <daehojeong@google.com>
Subject: Re: [f2fs-dev] [PATCH v5 1/2] f2fs: add F2FS_IOC_GET_COMPRESS_OPTION ioctl
Date: Fri, 30 Oct 2020 10:37:45 +0800 [thread overview]
Message-ID: <61d43f5d-f26c-525a-6405-bae0ca495c6d@huawei.com> (raw)
In-Reply-To: <861e569d-feae-c521-35b7-dcb8b79cdfba@huawei.com>
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,
next prev parent reply other threads:[~2020-10-30 2:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-29 4:15 Daeho Jeong
2020-10-29 4:15 ` [PATCH v5 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl Daeho Jeong
2020-10-29 7:29 ` [f2fs-dev] " Chao Yu
2020-10-29 7:39 ` Daeho Jeong
2020-10-29 7:57 ` Chao Yu
2020-10-29 15:54 ` Eric Biggers
2020-10-30 1:46 ` Daeho Jeong
2020-10-30 1:52 ` Chao Yu
2020-10-29 7:24 ` [f2fs-dev] [PATCH v5 1/2] f2fs: add F2FS_IOC_GET_COMPRESS_OPTION ioctl Chao Yu
2020-10-30 2:37 ` Chao Yu [this message]
2020-10-30 3:25 ` Daeho Jeong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=61d43f5d-f26c-525a-6405-bae0ca495c6d@huawei.com \
--to=yuchao0@huawei.com \
--cc=daeho43@gmail.com \
--cc=daehojeong@google.com \
--cc=kernel-team@android.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®