diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-11-01 10:39:36 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:02:30 +0100 |
| commit | e38ac7fbd5bcc64aeab9b911496a6983d4fd929e (patch) | |
| tree | cd6b858c92c68ed7ef2556c5a53f71fc91d38c93 /fs | |
| parent | 709565eaca55f28318a120c7bbbf7befb84d78f2 (diff) | |
| download | linux-e38ac7fbd5bcc64aeab9b911496a6983d4fd929e.tar.gz linux-e38ac7fbd5bcc64aeab9b911496a6983d4fd929e.tar.bz2 linux-e38ac7fbd5bcc64aeab9b911496a6983d4fd929e.zip | |
fs/ntfs3: Equivalent transition from page to folio
[ Upstream commit 045fff619312fb013540c80cff18aab3c33048ab ]
If using the proposed function folio_zero_range(), should one switch
from 'start + end' to 'start + length,' or use folio_zero_segment()
Fixes: 1da86618bdce ("fs: Convert aops->write_begin to take a folio")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/ntfs3/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c index e370eaf9bfe2..f704ceef9539 100644 --- a/fs/ntfs3/file.c +++ b/fs/ntfs3/file.c @@ -222,7 +222,7 @@ static int ntfs_extend_initialized_size(struct file *file, if (err) goto out; - folio_zero_range(folio, zerofrom, folio_size(folio)); + folio_zero_range(folio, zerofrom, folio_size(folio) - zerofrom); err = ntfs_write_end(file, mapping, pos, len, len, folio, NULL); if (err < 0) |
