FS-Cache: Provide the ability to enable/disable cookies
Provide the ability to enable and disable fscache cookies. A disabled cookie will reject or ignore further requests to: Acquire a child cookie Invalidate and update backing objects Check the consistency of a backing object Allocate storage for backing page Read backing pages Write to backing pages but still allows: Checks/waits on the completion of already in-progress objects Uncaching of pages Relinquishment of cookies Two new operations are provided: (1) Disable a cookie: void fscache_disable_cookie(struct fscache_cookie *cookie, bool invalidate); If the cookie is not already disabled, this locks the cookie against other dis/enablement ops, marks the cookie as being disabled, discards or invalidates any backing objects and waits for cessation of activity on any associated object. This is a wrapper around a chunk split out of fscache_relinquish_cookie(), but it reinitialises the cookie such t...
Showing
- Documentation/filesystems/caching/netfs-api.txt 60 additions, 13 deletionsDocumentation/filesystems/caching/netfs-api.txt
- fs/9p/cache.c 3 additions, 3 deletionsfs/9p/cache.c
- fs/afs/cell.c 1 addition, 1 deletionfs/afs/cell.c
- fs/afs/inode.c 1 addition, 1 deletionfs/afs/inode.c
- fs/afs/vlocation.c 2 additions, 1 deletionfs/afs/vlocation.c
- fs/afs/volume.c 1 addition, 1 deletionfs/afs/volume.c
- fs/cachefiles/interface.c 1 addition, 1 deletionfs/cachefiles/interface.c
- fs/ceph/cache.c 2 additions, 2 deletionsfs/ceph/cache.c
- fs/cifs/fscache.c 4 additions, 4 deletionsfs/cifs/fscache.c
- fs/fscache/cookie.c 137 additions, 49 deletionsfs/fscache/cookie.c
- fs/fscache/fsdef.c 1 addition, 0 deletionsfs/fscache/fsdef.c
- fs/fscache/netfs.c 1 addition, 0 deletionsfs/fscache/netfs.c
- fs/fscache/object.c 5 additions, 2 deletionsfs/fscache/object.c
- fs/fscache/page.c 11 additions, 6 deletionsfs/fscache/page.c
- fs/nfs/fscache.c 4 additions, 4 deletionsfs/nfs/fscache.c
- include/linux/fscache-cache.h 1 addition, 30 deletionsinclude/linux/fscache-cache.h
- include/linux/fscache.h 99 additions, 14 deletionsinclude/linux/fscache.h
Loading
Please register or sign in to comment