From: "Lukáš Czerner" <lczerner@redhat.com>
To: Maurizio Lombardi <mlombard@redhat.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH] ext4: remove unnecessary lock/unlock of i_block_reservation_lock
Date: Tue, 24 Mar 2015 15:53:54 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.00.1503241553070.2541@localhost.localdomain> (raw)
In-Reply-To: <1427202704-6264-1-git-send-email-mlombard@redhat.com>
On Tue, 24 Mar 2015, Maurizio Lombardi wrote:
> Date: Tue, 24 Mar 2015 14:11:44 +0100
> From: Maurizio Lombardi <mlombard@redhat.com>
> To: linux-ext4@vger.kernel.org
> Cc: tytso@mit.edu
> Subject: [PATCH] ext4: remove unnecessary lock/unlock of
> i_block_reservation_lock
>
> This is a leftover of commit 71d4f7d032149b935a26eb3ff85c6c837f3714e1
Ah yes, seems we're only now finding missing leftovers from that
commit :)
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Thanks!
-Lukas
>
> Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
> ---
> fs/ext4/balloc.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
> index 83a6f49..2072c70 100644
> --- a/fs/ext4/balloc.c
> +++ b/fs/ext4/balloc.c
> @@ -641,8 +641,6 @@ ext4_fsblk_t ext4_new_meta_blocks(handle_t *handle, struct inode *inode,
> * fail EDQUOT for metdata, but we do account for it.
> */
> if (!(*errp) && (flags & EXT4_MB_DELALLOC_RESERVED)) {
> - spin_lock(&EXT4_I(inode)->i_block_reservation_lock);
> - spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);
> dquot_alloc_block_nofail(inode,
> EXT4_C2B(EXT4_SB(inode->i_sb), ar.len));
> }
>
next prev parent reply other threads:[~2015-03-24 14:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-24 13:11 [PATCH] ext4: remove unnecessary lock/unlock of i_block_reservation_lock Maurizio Lombardi
2015-03-24 14:53 ` Lukáš Czerner [this message]
2015-04-03 4:04 ` 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.1503241553070.2541@localhost.localdomain \
--to=lczerner@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=mlombard@redhat.com \
--cc=tytso@mit.edu \
/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