[PATCH 7/9] fscache,netfs: define flags for prepare_read()

David Howells dhowells at redhat.com
Fri Oct 28 00:11:23 AEDT 2022


Jingbo Xu <jefflexu at linux.alibaba.com> wrote:

> +		if (test_bit(FSCACHE_REQ_COPY_TO_CACHE, &flags))
> +			__set_bit(NETFS_SREQ_COPY_TO_CACHE, &subreq->flags);

Please don't do that in netfslib.  Netfslib shouldn't know about fscache's
inner workings.

David



More information about the Linux-erofs mailing list