[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YNST4d8fCcGjQmzS@mit.edu>
Date: Thu, 24 Jun 2021 10:17:05 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: Leah Rumancik <leah.rumancik@...il.com>
Cc: linux-ext4@...r.kernel.org, dan.carpenter@...cle.com,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] ext4: fix input checking in fs/jbd2/journal.c
On Mon, Jun 07, 2021 at 05:55:58PM +0000, Leah Rumancik wrote:
> Update
>
> if (JBD2_JOURNAL_FLUSH_DISCARD & !blk_queue_discard(q))
>
> to use && instead of &. JBD2_JOURNAL_FLUSH_DISCARD is set to 1 so &
> technically works but && could be a bit faster and will maintain
> correctness in the event the value of JBD2_JOURNAL_FLUSH_DISCARD is
> updated.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
>
> Signed-off-by: Leah Rumancik <leah.rumancik@...il.com>
Thanks, I've folded this fix into the base commit.
- Ted
Powered by blists - more mailing lists