From: Li Zefan <lizefan@huawei.com>
To: "Lukáš Czerner" <lczerner@redhat.com>
Cc: <linux-btrfs@vger.kernel.org>, <jbacik@fusionio.com>
Subject: Re: [PATCH] btrfs: Return EINVAL when length to trim is less than FSB
Date: Wed, 24 Oct 2012 16:20:09 +0800 [thread overview]
Message-ID: <5087A4B9.8050109@huawei.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1210241015080.25196@dhcp-1-104.brq.redhat.com>
On 2012/10/24 16:15, Lukáš Czerner wrote:
> On Tue, 16 Oct 2012, Lukas Czerner wrote:
>
>> Date: Tue, 16 Oct 2012 11:34:36 +0200
>> From: Lukas Czerner <lczerner@redhat.com>
>> To: linux-btrfs@vger.kernel.org
>> Cc: jbacik@fusionio.com, Lukas Czerner <lczerner@redhat.com>
>> Subject: [PATCH] btrfs: Return EINVAL when length to trim is less than FSB
>>
>> Currently if len argument in btrfs_ioctl_fitrim() is smaller than
>> one FSB we will continue and finally return 0 bytes discarded.
>> However if the length to discard is smaller then file system block
>> we should really return EINVAL.
>
> ping
>
This patch has already sit in Josef's btrfs-next tree:
http://git.kernel.org/?p=linux/kernel/git/josef/btrfs-next.git;a=commit;h=cd50b6b30f09446eafdd715db6d59299fcc5b19a
prev parent reply other threads:[~2012-10-24 8:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-16 9:34 [PATCH] btrfs: Return EINVAL when length to trim is less than FSB Lukas Czerner
2012-10-24 8:15 ` Lukáš Czerner
2012-10-24 8:20 ` Li Zefan [this message]
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=5087A4B9.8050109@huawei.com \
--to=lizefan@huawei.com \
--cc=jbacik@fusionio.com \
--cc=lczerner@redhat.com \
--cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).