[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210111105342.GE2502@lst.de>
Date: Mon, 11 Jan 2021 11:53:42 +0100
From: Christoph Hellwig <hch@....de>
To: Eric Biggers <ebiggers@...nel.org>
Cc: linux-fsdevel@...r.kernel.org, linux-xfs@...r.kernel.org,
linux-ext4@...r.kernel.org, linux-f2fs-devel@...ts.sourceforge.net,
Theodore Ts'o <tytso@....edu>, Christoph Hellwig <hch@....de>
Subject: Re: [PATCH v2 11/12] ext4: simplify i_state checks in
__ext4_update_other_inode_time()
On Fri, Jan 08, 2021 at 11:59:02PM -0800, Eric Biggers wrote:
> if ((inode->i_state & (I_FREEING | I_WILL_FREE | I_NEW |
> - I_DIRTY_INODE)) ||
> - ((inode->i_state & I_DIRTY_TIME) == 0))
> + I_DIRTY_TIME)) != I_DIRTY_TIME)
> return;
>
> spin_lock(&inode->i_lock);
> - if (((inode->i_state & (I_FREEING | I_WILL_FREE | I_NEW |
> - I_DIRTY_INODE)) == 0) &&
> - (inode->i_state & I_DIRTY_TIME)) {
> + if ((inode->i_state & (I_FREEING | I_WILL_FREE | I_NEW |
> + I_DIRTY_TIME)) == I_DIRTY_TIME) {
I think a descriptively named inline helper in fs.h would really improve
this..
Powered by blists - more mailing lists