diff options
author | David Howells <dhowells@redhat.com> | 2024-09-17 09:54:28 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-09-25 04:57:00 +0200 |
commit | 665db14d0712ac27f6a0081510bd811efb3faa3c (patch) | |
tree | 6813e8ea8299237ccc65d45f7b15dcf2a5f67355 /block/elevator.h | |
parent | cifs: update internal version number (diff) | |
download | linux-665db14d0712ac27f6a0081510bd811efb3faa3c.tar.xz linux-665db14d0712ac27f6a0081510bd811efb3faa3c.zip |
netfs, cifs: Fix mtime/ctime update for mmapped writes
The cifs flag CIFS_INO_MODIFIED_ATTR, which indicates that the mtime and
ctime need to be written back on close, got taken over by netfs as
NETFS_ICTX_MODIFIED_ATTR to avoid the need to call a function pointer to
set it.
The flag gets set correctly on buffered writes, but doesn't get set by
netfs_page_mkwrite(), leading to occasional failures in generic/080 and
generic/215.
Fix this by setting the flag in netfs_page_mkwrite().
Fixes: 73425800ac94 ("netfs, cifs: Move CIFS_INO_MODIFIED_ATTR to netfs_inode")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202409161629.98887b2-oliver.sang@intel.com
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'block/elevator.h')
0 files changed, 0 insertions, 0 deletions