fs/ntfs3: Print warning while fixing hard links count
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
1918c10e13
commit
85ba2a75fa
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user