OSDN Git Service

afs: Convert from launder_page to launder_folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 9 Feb 2022 20:21:54 +0000 (20:21 +0000)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 15 Mar 2022 12:23:30 +0000 (08:23 -0400)
Straightforward conversion.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs
Tested-by: David Howells <dhowells@redhat.com> # afs
fs/afs/file.c
fs/afs/internal.h
fs/afs/write.c

index 699ea2d..56b20b9 100644 (file)
@@ -55,7 +55,7 @@ const struct address_space_operations afs_file_aops = {
        .readpage       = afs_readpage,
        .readahead      = afs_readahead,
        .set_page_dirty = afs_set_page_dirty,
-       .launder_page   = afs_launder_page,
+       .launder_folio  = afs_launder_folio,
        .releasepage    = afs_releasepage,
        .invalidate_folio = afs_invalidate_folio,
        .write_begin    = afs_write_begin,
index b6f0232..4023d8e 100644 (file)
@@ -1537,7 +1537,7 @@ extern ssize_t afs_file_write(struct kiocb *, struct iov_iter *);
 extern int afs_fsync(struct file *, loff_t, loff_t, int);
 extern vm_fault_t afs_page_mkwrite(struct vm_fault *vmf);
 extern void afs_prune_wb_keys(struct afs_vnode *);
-extern int afs_launder_page(struct page *);
+int afs_launder_folio(struct folio *);
 
 /*
  * xattr.c
index 5e9157d..5864411 100644 (file)
@@ -972,9 +972,8 @@ void afs_prune_wb_keys(struct afs_vnode *vnode)
 /*
  * Clean up a page during invalidation.
  */
-int afs_launder_page(struct page *subpage)
+int afs_launder_folio(struct folio *folio)
 {
-       struct folio *folio = page_folio(subpage);
        struct afs_vnode *vnode = AFS_FS_I(folio_inode(folio));
        struct iov_iter iter;
        struct bio_vec bv[1];
@@ -982,7 +981,7 @@ int afs_launder_page(struct page *subpage)
        unsigned int f, t;
        int ret = 0;
 
-       _enter("{%lx}", folio_index(folio));
+       _enter("{%lx}", folio->index);
 
        priv = (unsigned long)folio_get_private(folio);
        if (folio_clear_dirty_for_io(folio)) {