Lines Matching refs:netfs
20 #include <linux/netfs.h>
285 struct nfs_netfs_io_data *netfs;
287 netfs = kzalloc(sizeof(*netfs), GFP_KERNEL_ACCOUNT);
288 if (!netfs)
290 netfs->sreq = sreq;
291 refcount_set(&netfs->refcount, 1);
292 return netfs;
305 struct nfs_netfs_io_data *netfs;
319 netfs = nfs_netfs_alloc(sreq);
320 if (!netfs)
323 pgio.pg_netfs = netfs; /* used in completion */
329 netfs->error = err;
335 nfs_netfs_put(netfs);
340 struct nfs_netfs_io_data *netfs = hdr->netfs;
342 if (!netfs)
345 nfs_netfs_get(netfs);
353 * If fscache is enabled, netfs will unlock pages.
363 struct nfs_netfs_io_data *netfs = hdr->netfs;
366 if (!netfs)
369 sreq = netfs->sreq;
374 netfs->error = hdr->error;
376 atomic64_add(hdr->res.count, &netfs->transferred);
378 nfs_netfs_put(netfs);
379 hdr->netfs = NULL;