Skip to content

Commit 85ba2a7

Browse files
fs/ntfs3: Print warning while fixing hard links count
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent 1918c10 commit 85ba2a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ntfs3/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ static struct inode *ntfs_read_mft(struct inode *inode,
412412
goto out;
413413

414414
if (!is_match && name) {
415-
/* Reuse rec as buffer for ascii name. */
416415
err = -ENOENT;
417416
goto out;
418417
}
@@ -427,6 +426,7 @@ static struct inode *ntfs_read_mft(struct inode *inode,
427426

428427
if (names != le16_to_cpu(rec->hard_links)) {
429428
/* Correct minor error on the fly. Do not mark inode as dirty. */
429+
ntfs_inode_warn(inode, "Correct links count -> %u.", names);
430430
rec->hard_links = cpu_to_le16(names);
431431
ni->mi.dirty = true;
432432
}

0 commit comments

Comments
 (0)