Lines Matching defs:netfs
20 #include <linux/netfs.h>
279 struct nfs_netfs_io_data *netfs;
281 netfs = kzalloc(sizeof(*netfs), GFP_KERNEL_ACCOUNT);
282 if (!netfs)
284 netfs->sreq = sreq;
285 refcount_set(&netfs->refcount, 1);
286 return netfs;
299 struct nfs_netfs_io_data *netfs;
313 netfs = nfs_netfs_alloc(sreq);
314 if (!netfs)
317 pgio.pg_netfs = netfs; /* used in completion */
323 netfs->error = err;
329 nfs_netfs_put(netfs);
334 struct nfs_netfs_io_data *netfs = hdr->netfs;
336 if (!netfs)
339 nfs_netfs_get(netfs);
347 * If fscache is enabled, netfs will unlock pages.
357 struct nfs_netfs_io_data *netfs = hdr->netfs;
360 if (!netfs)
363 sreq = netfs->sreq;
368 netfs->error = hdr->error;
370 atomic64_add(hdr->res.count, &netfs->transferred);
372 nfs_netfs_put(netfs);
373 hdr->netfs = NULL;