]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
fscache, cachefiles: Add alternate API to use kiocb for read/write to cache
authorDavid Howells <dhowells@redhat.com>
Mon, 18 Jan 2021 09:48:48 +0000 (09:48 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Jan 2021 10:56:46 +0000 (10:56 +0000)
commit6b323be9aad69b3dd2823fea4aebf6db9ba18a94
tree3509923e5280a3583d04d8e96556e2ec4c3eaf33
parent99fed40841c46296511363fac3f548787a1612d4
fscache, cachefiles: Add alternate API to use kiocb for read/write to cache

Add an alternate API by which the cache can be accessed through a kiocb,
doing async DIO, rather than using the current API that tells the cache
where all the pages are.

The new API is intended to be used in conjunction with the netfs helper
library.  A filesystem must pick one or the other and not mix them.

Filesystems wanting to use the new API must #define FSCACHE_USE_NEW_IO_API
before #including the header

Signed-off-by: David Howells <dhowells@redhat.com>
fs/cachefiles/Makefile
fs/cachefiles/interface.c
fs/cachefiles/internal.h
fs/cachefiles/rdwr2.c [new file with mode: 0644]
fs/fscache/Kconfig
fs/fscache/Makefile
fs/fscache/internal.h
fs/fscache/page.c
fs/fscache/page2.c [new file with mode: 0644]
fs/fscache/stats.c
include/linux/fscache.h