internal.h (dc4191841d0998978349e9119ab2ccb080b8b957) | internal.h (5cbf03985c67c7f0ac8c5382cf5d4d0d630f95f3) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* internal AFS stuff 3 * 4 * Copyright (C) 2002, 2007 Red Hat, Inc. All Rights Reserved. 5 * Written by David Howells (dhowells@redhat.com) 6 */ 7 8#include <linux/compiler.h> 9#include <linux/kernel.h> 10#include <linux/ktime.h> 11#include <linux/fs.h> 12#include <linux/pagemap.h> 13#include <linux/rxrpc.h> 14#include <linux/key.h> 15#include <linux/workqueue.h> 16#include <linux/sched.h> | 1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* internal AFS stuff 3 * 4 * Copyright (C) 2002, 2007 Red Hat, Inc. All Rights Reserved. 5 * Written by David Howells (dhowells@redhat.com) 6 */ 7 8#include <linux/compiler.h> 9#include <linux/kernel.h> 10#include <linux/ktime.h> 11#include <linux/fs.h> 12#include <linux/pagemap.h> 13#include <linux/rxrpc.h> 14#include <linux/key.h> 15#include <linux/workqueue.h> 16#include <linux/sched.h> |
17#define FSCACHE_USE_NEW_IO_API |
|
17#include <linux/fscache.h> 18#include <linux/backing-dev.h> 19#include <linux/uuid.h> 20#include <linux/mm_types.h> 21#include <linux/dns_resolver.h> 22#include <net/net_namespace.h> 23#include <net/netns/generic.h> 24#include <net/sock.h> --- 177 unchanged lines hidden (view full) --- 202 */ 203struct afs_read { 204 loff_t pos; /* Where to start reading */ 205 loff_t len; /* How much we're asking for */ 206 loff_t actual_len; /* How much we're actually getting */ 207 loff_t file_size; /* File size returned by server */ 208 struct key *key; /* The key to use to reissue the read */ 209 struct afs_vnode *vnode; /* The file being read into. */ | 18#include <linux/fscache.h> 19#include <linux/backing-dev.h> 20#include <linux/uuid.h> 21#include <linux/mm_types.h> 22#include <linux/dns_resolver.h> 23#include <net/net_namespace.h> 24#include <net/netns/generic.h> 25#include <net/sock.h> --- 177 unchanged lines hidden (view full) --- 203 */ 204struct afs_read { 205 loff_t pos; /* Where to start reading */ 206 loff_t len; /* How much we're asking for */ 207 loff_t actual_len; /* How much we're actually getting */ 208 loff_t file_size; /* File size returned by server */ 209 struct key *key; /* The key to use to reissue the read */ 210 struct afs_vnode *vnode; /* The file being read into. */ |
211 struct netfs_read_subrequest *subreq; /* Fscache helper read request this belongs to */ |
|
210 afs_dataversion_t data_version; /* Version number returned by server */ 211 refcount_t usage; 212 unsigned int call_debug_id; 213 unsigned int nr_pages; 214 int error; 215 void (*done)(struct afs_read *); 216 void (*cleanup)(struct afs_read *); 217 struct iov_iter *iter; /* Iterator representing the buffer */ --- 826 unchanged lines hidden (view full) --- 1044extern const struct inode_operations afs_file_inode_operations; 1045extern const struct file_operations afs_file_operations; 1046 1047extern int afs_cache_wb_key(struct afs_vnode *, struct afs_file *); 1048extern void afs_put_wb_key(struct afs_wb_key *); 1049extern int afs_open(struct inode *, struct file *); 1050extern int afs_release(struct inode *, struct file *); 1051extern int afs_fetch_data(struct afs_vnode *, struct afs_read *); | 212 afs_dataversion_t data_version; /* Version number returned by server */ 213 refcount_t usage; 214 unsigned int call_debug_id; 215 unsigned int nr_pages; 216 int error; 217 void (*done)(struct afs_read *); 218 void (*cleanup)(struct afs_read *); 219 struct iov_iter *iter; /* Iterator representing the buffer */ --- 826 unchanged lines hidden (view full) --- 1046extern const struct inode_operations afs_file_inode_operations; 1047extern const struct file_operations afs_file_operations; 1048 1049extern int afs_cache_wb_key(struct afs_vnode *, struct afs_file *); 1050extern void afs_put_wb_key(struct afs_wb_key *); 1051extern int afs_open(struct inode *, struct file *); 1052extern int afs_release(struct inode *, struct file *); 1053extern int afs_fetch_data(struct afs_vnode *, struct afs_read *); |
1054extern struct afs_read *afs_alloc_read(gfp_t); |
|
1052extern void afs_put_read(struct afs_read *); 1053 1054static inline struct afs_read *afs_get_read(struct afs_read *req) 1055{ 1056 refcount_inc(&req->usage); 1057 return req; 1058} 1059 --- 681 unchanged lines hidden --- | 1055extern void afs_put_read(struct afs_read *); 1056 1057static inline struct afs_read *afs_get_read(struct afs_read *req) 1058{ 1059 refcount_inc(&req->usage); 1060 return req; 1061} 1062 --- 681 unchanged lines hidden --- |