diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-11-01 10:39:36 +0300 |
|---|---|---|
| committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-11-01 11:19:51 +0300 |
| commit | 045fff619312fb013540c80cff18aab3c33048ab (patch) | |
| tree | 52c629096f1b1947c7b64bc3f536f8c0b6865946 /fs/ntfs3 | |
| parent | fs/ntfs3: Fix case when unmarked clusters intersect with zone (diff) | |
| download | linux-045fff619312fb013540c80cff18aab3c33048ab.tar.gz linux-045fff619312fb013540c80cff18aab3c33048ab.zip | |
fs/ntfs3: Equivalent transition from page to folio
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>
Diffstat (limited to 'fs/ntfs3')
| -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) |
