diff options
| author | Hongling Zeng <zenghongling@kylinos.cn> | 2026-09-15 16:32:52 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-20 18:41:45 +0900 |
| commit | 17a1edda75fd371f36085b1568e0b70baff99969 (patch) | |
| tree | adc0268560272e1a8d804d065478ba5587f4f222 /scripts/Makefile.thinlto | |
| parent | 1a3883b3685cc4c8bc41927cc9df539239d7c961 (diff) | |
| download | linux-17a1edda75fd371f36085b1568e0b70baff99969.tar.gz linux-17a1edda75fd371f36085b1568e0b70baff99969.zip | |
ntfs: fail remount on sync errors and keep the dirty bit on SB_FORCE
ntfs_reconfigure() currently ignores sync_filesystem() errors, allowing
a regular read-only remount to succeed even when dirty data was not
synced. Check the error and fail regular remounts, leaving the
superblock read-write so ntfs_put_super() can retry at unmount.
SB_FORCE does not wait for writers already in progress, so it must not
clear the on-disk dirty bit. Warn and continue on sync errors for
SB_FORCE. A forced remount updates the dirty state only when errors
have been recorded, and never clears the dirty bit. Skip the commit if
that state update fails, since the in-memory flags may be inconsistent.
Reported-by: Hyunchul Lee <hyc.lee@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
