Lines Matching refs:netfs
56 static inline void nfs_netfs_get(struct nfs_netfs_io_data *netfs) in nfs_netfs_get() argument
58 refcount_inc(&netfs->refcount); in nfs_netfs_get()
61 static inline void nfs_netfs_put(struct nfs_netfs_io_data *netfs) in nfs_netfs_put() argument
64 if (!refcount_dec_and_test(&netfs->refcount)) in nfs_netfs_put()
75 netfs->sreq->transferred = min_t(s64, netfs->sreq->len, in nfs_netfs_put()
76 atomic64_read(&netfs->transferred)); in nfs_netfs_put()
77 netfs_read_subreq_terminated(netfs->sreq, netfs->error, false); in nfs_netfs_put()
78 kfree(netfs); in nfs_netfs_put()
82 netfs_inode_init(&nfsi->netfs, &nfs_netfs_ops, false); in nfs_netfs_inode_init()
131 struct fscache_cookie *cookie = netfs_i_cookie(&NFS_I(inode)->netfs); in nfs_fscache_invalidate()
150 hdr->netfs = desc->pg_netfs; in nfs_netfs_set_pgio_header()
155 desc->pg_netfs = hdr->netfs; in nfs_netfs_set_pageio_descriptor()