mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
fs/ntfs3: Print warning while fixing hard links count
[ Upstream commit 85ba2a75fa
]
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
25d1694d6e
commit
a9f7d7656f
@ -402,7 +402,6 @@ static struct inode *ntfs_read_mft(struct inode *inode,
|
||||
goto out;
|
||||
|
||||
if (!is_match && name) {
|
||||
/* Reuse rec as buffer for ascii name. */
|
||||
err = -ENOENT;
|
||||
goto out;
|
||||
}
|
||||
@ -417,6 +416,7 @@ static struct inode *ntfs_read_mft(struct inode *inode,
|
||||
|
||||
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…
Reference in New Issue
Block a user