@@ -83,13 +83,13 @@ static void netfs_update_i_size(struct netfs_inode *ctx, struct inode *inode,
83
83
* netfs_perform_write - Copy data into the pagecache.
84
84
* @iocb: The operation parameters
85
85
* @iter: The source buffer
86
- * @netfs_group: Grouping for dirty pages (eg. ceph snaps).
86
+ * @netfs_group: Grouping for dirty folios (eg. ceph snaps).
87
87
*
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.
89
89
* The caller must hold appropriate inode locks.
90
90
*
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
93
93
* netfs-specific grouping such that data from an old group gets flushed before
94
94
* a new one is started.
95
95
*/
@@ -223,11 +223,11 @@ ssize_t netfs_perform_write(struct kiocb *iocb, struct iov_iter *iter,
223
223
* we try to read it.
224
224
*/
225
225
if (fpos >= ctx -> zero_point ) {
226
- zero_user_segment ( & folio -> page , 0 , offset );
226
+ folio_zero_segment ( folio , 0 , offset );
227
227
copied = copy_folio_from_iter_atomic (folio , offset , part , iter );
228
228
if (unlikely (copied == 0 ))
229
229
goto copy_failed ;
230
- zero_user_segment ( & folio -> page , offset + copied , flen );
230
+ folio_zero_segment ( folio , offset + copied , flen );
231
231
__netfs_set_group (folio , netfs_group );
232
232
folio_mark_uptodate (folio );
233
233
trace_netfs_folio (folio , netfs_modify_and_clear );
@@ -407,7 +407,7 @@ EXPORT_SYMBOL(netfs_perform_write);
407
407
* netfs_buffered_write_iter_locked - write data to a file
408
408
* @iocb: IO state structure (file, offset, etc.)
409
409
* @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).
411
411
*
412
412
* This function does all the work needed for actually writing data to a
413
413
* file. It does all basic checks, removes SUID from the file, updates
0 commit comments