diff options
| author | Frank Sorenson <sorenson@redhat.com> | 2026-08-23 18:26:46 -0500 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-08-26 19:32:05 -0300 |
| commit | 53676a5e28231186c9f56d87b7998b640699bc15 (patch) | |
| tree | 447f48cb5675be72fa3f0ae5f977b9b4987bd662 /include/linux/debugobjects.h | |
| parent | 45c13f3f9e3bb15fd89ff2864c6f627a3b4b4229 (diff) | |
cifs: add revalidation on FSCTL failure in smb2_duplicate_extents()
smb2_duplicate_extents() has no handling for
FSCTL_DUPLICATE_EXTENTS_TO_FILE failure: when the FSCTL fails, local
inode metadata may be stale from the pre-extension or from concurrent
remote writes, but is never refreshed.
Force revalidation on FSCTL failure and use i_size_read() for the
pre-extension check.
Fixes: cfc63fc8126a ("smb3: fix cached file size problems in duplicate extents (reflink)")
Cc: stable@vger.kernel.org
Signed-off-by: Frank Sorenson <sorenson@redhat.com>
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
