From: "Lukáš Czerner" <lczerner@redhat.com>
To: jon ernst <jonernst07@gmail.com>
Cc: "linux-ext4@vger.kernel.org List" <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] ext4: fallocate_zero_range, check if is regular file
Date: Thu, 17 Apr 2014 13:08:49 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.1404171307520.2143@localhost.localdomain> (raw)
In-Reply-To: <CAGW2f1GoMPwcO3o4Q=As-DkiT2WPN7BiEkq1=RYfX6rnpExipA@mail.gmail.com>
On Thu, 17 Apr 2014, jon ernst wrote:
> Date: Thu, 17 Apr 2014 00:22:04 -0400
> From: jon ernst <jonernst07@gmail.com>
> To: "linux-ext4@vger.kernel.org List" <linux-ext4@vger.kernel.org>
> Subject: [PATCH] ext4: fallocate_zero_range, check if is regular file
>
> fallocate_zero_range, check if inode is regular file.
>
> Signed-off-by: Jon Ernst <jonernst07@gmail.com>
Thanks, you can add.
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
> ---
> fs/ext4/extents.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
> index 1bb3e4b..756a3b9 100644
> --- a/fs/ext4/extents.c
> +++ b/fs/ext4/extents.c
> @@ -4742,6 +4742,8 @@ static long ext4_zero_range(struct file *file,
> loff_t offset,
>
> trace_ext4_zero_range(inode, offset, len, mode);
>
> + if (!S_ISREG(inode->i_mode))
> + return -EOPNOTSUPP;
> /*
> * Write out all dirty pages to avoid race conditions
> * Then release them.
next prev parent reply other threads:[~2014-04-17 11:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-17 4:22 [PATCH] ext4: fallocate_zero_range, check if is regular file jon ernst
2014-04-17 11:08 ` Lukáš Czerner [this message]
2014-04-18 7:50 ` Ashish Sangwan
2014-04-18 15:52 ` Theodore Ts'o
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=alpine.LFD.2.00.1404171307520.2143@localhost.localdomain \
--to=lczerner@redhat.com \
--cc=jonernst07@gmail.com \
--cc=linux-ext4@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