@@ -83,13 +83,13 @@ static void netfs_update_i_size(struct netfs_inode *ctx, struct inode *inode,
8383 * netfs_perform_write - Copy data into the pagecache.
8484 * @iocb: The operation parameters
8585 * @iter: The source buffer
86- * @netfs_group: Grouping for dirty pages (eg. ceph snaps).
86+ * @netfs_group: Grouping for dirty folios (eg. ceph snaps).
8787 *
88- * Copy data into pagecache pages attached to the inode specified by @iocb.
88+ * Copy data into pagecache folios attached to the inode specified by @iocb.
8989 * The caller must hold appropriate inode locks.
9090 *
91- * Dirty pages are tagged with a netfs_folio struct if they're not up to date
92- * to indicate the range modified. Dirty pages may also be tagged with a
91+ * Dirty folios are tagged with a netfs_folio struct if they're not up to date
92+ * to indicate the range modified. Dirty folios may also be tagged with a
9393 * netfs-specific grouping such that data from an old group gets flushed before
9494 * a new one is started.
9595 */
@@ -223,11 +223,11 @@ ssize_t netfs_perform_write(struct kiocb *iocb, struct iov_iter *iter,
223223 * we try to read it.
224224 */
225225 if (fpos >= ctx -> zero_point ) {
226- zero_user_segment ( & folio -> page , 0 , offset );
226+ folio_zero_segment ( folio , 0 , offset );
227227 copied = copy_folio_from_iter_atomic (folio , offset , part , iter );
228228 if (unlikely (copied == 0 ))
229229 goto copy_failed ;
230- zero_user_segment ( & folio -> page , offset + copied , flen );
230+ folio_zero_segment ( folio , offset + copied , flen );
231231 __netfs_set_group (folio , netfs_group );
232232 folio_mark_uptodate (folio );
233233 trace_netfs_folio (folio , netfs_modify_and_clear );
@@ -407,7 +407,7 @@ EXPORT_SYMBOL(netfs_perform_write);
407407 * netfs_buffered_write_iter_locked - write data to a file
408408 * @iocb: IO state structure (file, offset, etc.)
409409 * @from: iov_iter with data to write
410- * @netfs_group: Grouping for dirty pages (eg. ceph snaps).
410+ * @netfs_group: Grouping for dirty folios (eg. ceph snaps).
411411 *
412412 * This function does all the work needed for actually writing data to a
413413 * file. It does all basic checks, removes SUID from the file, updates
0 commit comments