Lines Matching defs:netfs
40 * with their own read completion. In netfs, we can only call
43 * and only call netfs via netfs_subreq_terminated() once.
56 static inline void nfs_netfs_get(struct nfs_netfs_io_data *netfs)
58 refcount_inc(&netfs->refcount);
61 static inline void nfs_netfs_put(struct nfs_netfs_io_data *netfs)
66 if (!refcount_dec_and_test(&netfs->refcount))
70 * The NFS pageio interface may read a complete page, even when netfs
74 * Correct the final length here to be no larger than the netfs subrequest
75 * length, and thus avoid netfs's "Subreq overread" warning message.
77 final_len = min_t(s64, netfs->sreq->len, atomic64_read(&netfs->transferred));
78 netfs_subreq_terminated(netfs->sreq, netfs->error ?: final_len, false);
79 kfree(netfs);
83 netfs_inode_init(&nfsi->netfs, &nfs_netfs_ops);
132 struct fscache_cookie *cookie = netfs_i_cookie(&NFS_I(inode)->netfs);
151 hdr->netfs = desc->pg_netfs;
156 desc->pg_netfs = hdr->netfs;