fs/ntfs3: Print warning while fixing hard links count

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
Konstantin Komarov 2023-11-24 11:34:24 +03:00
parent 1918c10e13
commit 85ba2a75fa
No known key found for this signature in database
GPG Key ID: A9B0331F832407B6

View File

@ -412,7 +412,6 @@ end_enum:
goto out;
if (!is_match && name) {
/* Reuse rec as buffer for ascii name. */
err = -ENOENT;
goto out;
}
@ -427,6 +426,7 @@ end_enum:
if (names != le16_to_cpu(rec->hard_links)) {
/* Correct minor error on the fly. Do not mark inode as dirty. */
ntfs_inode_warn(inode, "Correct links count -> %u.", names);
rec->hard_links = cpu_to_le16(names);
ni->mi.dirty = true;
}