Skip to content

Commit 045fff6

Browse files
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: 1da8661 ("fs: Convert aops->write_begin to take a folio") Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent 5fc982f commit 045fff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs3/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static int ntfs_extend_initialized_size(struct file *file,
222222
if (err)
223223
goto out;
224224

225-
folio_zero_range(folio, zerofrom, folio_size(folio));
225+
folio_zero_range(folio, zerofrom, folio_size(folio) - zerofrom);
226226

227227
err = ntfs_write_end(file, mapping, pos, len, len, folio, NULL);
228228
if (err < 0)

0 commit comments

Comments
 (0)