Jeffle Xu <jefflexu@xxxxxxxxxxxxxxxxx> wrote: > Extract the generic routine of writing data to cache files, and make it > generally available. > > This will be used by the following patch implementing on-demand read > mode. Since it's called inside cachefiles module in this case, make the > interface generic and unrelated to netfs_cache_resources. > > It is worth noting that, ki->inval_counter is not initialized after > this cleanup. It shall not make any visible difference, since > inval_counter is no longer used in the write completion routine, i.e. > cachefiles_write_complete(). > > Signed-off-by: Jeffle Xu <jefflexu@xxxxxxxxxxxxxxxxx> Acked-by: David Howells <dhowells@xxxxxxxxxx>