Commit Graph

5 Commits

Author SHA1 Message Date
Chris von Recklinghausen cc89a4e251 fs: Add aops->release_folio
Bugzilla: https://bugzilla.redhat.com/2160210

commit fa29000b6b2603ec2bfdc4c73249fcb00cd54f85
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date:   Fri Apr 29 17:00:05 2022 -0400

    fs: Add aops->release_folio

    This replaces aops->releasepage.  Update the documentation, and call it
    if it exists.

    Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2023-03-24 11:19:01 -04:00
Chris von Recklinghausen 6c04cf960a fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio()
Conflicts:
	drop changes to fs/9p/vfs_addr.c - unsupported fs
	fs/afs/file.c - We already have
		bc899ee1c898 ("netfs: Add a netfs inode context")
		so just remove the .set_page_dirty entry and replace it with
		the .dirty_folio entry

Bugzilla: https://bugzilla.redhat.com/2120352

commit 8fb72b4a76933ae6f86725cc8e4a8190ba84d755
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date:   Wed Feb 9 20:22:01 2022 +0000

    fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio()

    Convert all users of fscache_set_page_dirty to use fscache_dirty_folio.

    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

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2022-10-12 07:27:48 -04:00
Chris von Recklinghausen edb3ae6d12 fscache: Rewrite documentation
Conflicts: Documentation/filesystems/caching/netfs-api.rst -
	We already have
	2c547f299827 ("fscache: Remove the cookie parameter from fscache_clear_p
age_bits()")
	so keep description for fscache_clear_page_bits

Bugzilla: https://bugzilla.redhat.com/2120352

commit e0484344c0413e1fcd5642b77d49c7648fb194ec
Author: David Howells <dhowells@redhat.com>
Date:   Wed Nov 10 13:25:03 2021 +0000

    fscache: Rewrite documentation

    Rewrite the fscache documentation.

    Changes
    =======
    ver #3:
     - The volume coherency data is now an arbitrarily-sized blob, not a u64.

    ver #2:
     - Put quoting around some bits of C being referred to in the docs[1].
     - Stripped the markup off the ref to the netfs lib doc[2].

    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    cc: linux-cachefs@redhat.com
    Link: https://lore.kernel.org/r/20211130175119.63d0e7aa@canb.auug.org.au/ [1
]
    Link: https://lore.kernel.org/r/20211130162311.105fcfa5@canb.auug.org.au/ [2
]
    Link: https://lore.kernel.org/r/163819672252.215744.15454333549935901588.stg
it@warthog.procyon.org.uk/ # v1
    Link: https://lore.kernel.org/r/163906986754.143852.17703291789683936950.stg
it@warthog.procyon.org.uk/ # v2
    Link: https://lore.kernel.org/r/163967193834.1823006.15991526817786159772.st
git@warthog.procyon.org.uk/ # v3
    Link: https://lore.kernel.org/r/164021585970.640689.3162537597817521032.stgi
t@warthog.procyon.org.uk/ # v4

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2022-10-12 07:27:37 -04:00
Jeffrey Layton 84a68faadf fscache: Remove the cookie parameter from fscache_clear_page_bits()
Bugzilla: http://bugzilla.redhat.com/1229736
Conflicts: Documentation conflicts

commit 2c547f299827c12244d613eb2ee3616d88f56088
Author: Yue Hu <huyue2@coolpad.com>
Date:   Wed Apr 6 11:50:17 2022 +0800

    fscache: Remove the cookie parameter from fscache_clear_page_bits()

    The cookie is not used at all, remove it and update the usage in io.c
    and afs/write.c (which is the only user outside of fscache currently)
    at the same time.

    [DH: Amended the documentation also]

    Signed-off-by: Yue Hu <huyue2@coolpad.com>
    Signed-off-by: David Howells <dhowells@redhat.com>
    cc: linux-cachefs@redhat.com
    Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006659.html

Signed-off-by: Jeffrey Layton <jlayton@redhat.com>
2022-08-22 12:32:26 -04:00
Mauro Carvalho Chehab efc930fa1d docs: filesystems: caching/netfs-api.txt: convert it to ReST
- Add a SPDX header;
- Adjust document and section titles;
- Some whitespace fixes and new line breaks;
- Mark literal blocks as such;
- Add it to filesystems/caching/index.rst.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/cfe4cb1bf8e1f0093d44c30801ec42e74721e543.1588021877.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2020-05-05 09:22:20 -06:00