Use inode_or_folios_dirty() helper instead of explicit inode state check. No functional change. Signed-off-by: Jan Kara --- fs/crypto/keysetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/crypto/keysetup.c b/fs/crypto/keysetup.c index a77b889d7578..1cd40663b251 100644 --- a/fs/crypto/keysetup.c +++ b/fs/crypto/keysetup.c @@ -839,7 +839,7 @@ int fscrypt_drop_inode(struct inode *inode) * userspace is still using the files, inodes can be dirtied between * then and now. We mustn't lose any writes, so skip dirty inodes here. */ - if (inode_state_read(inode) & I_DIRTY_ALL) + if (inode_or_folios_dirty(inode)) return 0; /* -- 2.53.0