diff options
author | Jan Kara <jack@suse.cz> | 2021-01-25 12:37:43 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-30 13:31:17 +0100 |
commit | 5c846eee8b209dbfc188314c20a3f50e72a337f0 (patch) | |
tree | bd712af7553ff7f66056dbc72ae7e92faf9ce639 /fs/ext4/inode.c | |
parent | 2f15ad510ebb4ab577cc24183c0e8aee5fb9ea29 (diff) | |
download | linux-stable-5c846eee8b209dbfc188314c20a3f50e72a337f0.tar.gz linux-stable-5c846eee8b209dbfc188314c20a3f50e72a337f0.tar.bz2 linux-stable-5c846eee8b209dbfc188314c20a3f50e72a337f0.zip |
writeback: Drop I_DIRTY_TIME_EXPIRE
commit 5fcd57505c002efc5823a7355e21f48dd02d5a51 upstream.
The only use of I_DIRTY_TIME_EXPIRE is to detect in
__writeback_single_inode() that inode got there because flush worker
decided it's time to writeback the dirty inode time stamps (either
because we are syncing or because of age). However we can detect this
directly in __writeback_single_inode() and there's no need for the
strange propagation with I_DIRTY_TIME_EXPIRE flag.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 098856fcecf8..eb635eab304e 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -5073,7 +5073,7 @@ static int other_inode_match(struct inode * inode, unsigned long ino, (inode->i_state & I_DIRTY_TIME)) { struct ext4_inode_info *ei = EXT4_I(inode); - inode->i_state &= ~(I_DIRTY_TIME | I_DIRTY_TIME_EXPIRED); + inode->i_state &= ~I_DIRTY_TIME; spin_unlock(&inode->i_lock); spin_lock(&ei->i_raw_lock); |