diff options
| author | Eric Biggers <ebiggers@google.com> | 2021-01-12 22:02:53 +0300 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2021-01-13 19:27:13 +0300 |
| commit | ed296c6c05b0ac52d7c6bf13a90f02b8b8222169 (patch) | |
| tree | d5d0a282d2a2f421fad8a050c58a5b67ad99898f /scripts/patch-kernel | |
| parent | 3aac630b5ce18b0a7e34cb35cdd99fcc508edc92 (diff) | |
| download | linux-ed296c6c05b0ac52d7c6bf13a90f02b8b8222169.tar.xz | |
ext4: simplify i_state checks in __ext4_update_other_inode_time()
Since I_DIRTY_TIME and I_DIRTY_INODE are mutually exclusive in i_state,
there's no need to check for I_DIRTY_TIME && !I_DIRTY_INODE. Just check
for I_DIRTY_TIME.
Also introduce a helper function in include/linux/fs.h to do this check.
Link: https://lore.kernel.org/r/20210112190253.64307-12-ebiggers@kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
