We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ab9cb commit 4f22262Copy full SHA for 4f22262
fs/cifs/file.c
@@ -884,7 +884,7 @@ int cifs_close(struct inode *inode, struct file *file)
884
cinode->lease_granted &&
885
!test_bit(CIFS_INO_CLOSE_ON_LOCK, &cinode->flags) &&
886
dclose) {
887
- if (test_bit(CIFS_INO_MODIFIED_ATTR, &cinode->flags)) {
+ if (test_and_clear_bit(CIFS_INO_MODIFIED_ATTR, &cinode->flags)) {
888
inode->i_ctime = inode->i_mtime = current_time(inode);
889
cifs_fscache_update_inode_cookie(inode);
890
}
0 commit comments