• Home
  • Raw
  • Download

Lines Matching refs:file

64 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
65 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
66 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
67 static ssize_t write_threads(struct file *file, char *buf, size_t size);
68 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
69 static ssize_t write_versions(struct file *file, char *buf, size_t size);
70 static ssize_t write_ports(struct file *file, char *buf, size_t size);
71 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
72 static ssize_t write_maxconn(struct file *file, char *buf, size_t size);
74 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
75 static ssize_t write_gracetime(struct file *file, char *buf, size_t size);
76 static ssize_t write_recoverydir(struct file *file, char *buf, size_t size);
77 static ssize_t write_v4_end_grace(struct file *file, char *buf, size_t size);
80 static ssize_t (*const write_op[])(struct file *, char *, size_t) = {
98 static ssize_t nfsctl_transaction_write(struct file *file, const char __user *buf, size_t size, lof… in nfsctl_transaction_write() argument
100 ino_t ino = file_inode(file)->i_ino; in nfsctl_transaction_write()
107 data = simple_transaction_get(file, buf, size); in nfsctl_transaction_write()
111 rv = write_op[ino](file, data, size); in nfsctl_transaction_write()
113 simple_transaction_set(file, rv); in nfsctl_transaction_write()
119 static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *po… in nfsctl_transaction_read() argument
121 if (! file->private_data) { in nfsctl_transaction_read()
126 ssize_t rv = nfsctl_transaction_write(file, buf, 0, pos); in nfsctl_transaction_read()
130 return simple_transaction_read(file, buf, size, pos); in nfsctl_transaction_read()
140 static int exports_net_open(struct net *net, struct file *file) in exports_net_open() argument
146 err = seq_open(file, &nfs_exports_op); in exports_net_open()
150 seq = file->private_data; in exports_net_open()
155 static int exports_proc_open(struct inode *inode, struct file *file) in exports_proc_open() argument
157 return exports_net_open(current->nsproxy->net_ns, file); in exports_proc_open()
167 static int exports_nfsd_open(struct inode *inode, struct file *file) in exports_nfsd_open() argument
169 return exports_net_open(inode->i_sb->s_fs_info, file); in exports_nfsd_open()
185 static int export_features_open(struct inode *inode, struct file *file) in export_features_open() argument
187 return single_open(file, export_features_show, NULL); in export_features_open()
204 static int supported_enctypes_open(struct inode *inode, struct file *file) in supported_enctypes_open() argument
206 return single_open(file, supported_enctypes_show, NULL); in supported_enctypes_open()
236 static inline struct net *netns(struct file *file) in netns() argument
238 return file_inode(file)->i_sb->s_fs_info; in netns()
255 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size) in write_unlock_ip() argument
261 struct net *net = netns(file); in write_unlock_ip()
294 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size) in write_unlock_fs() argument
351 static ssize_t write_filehandle(struct file *file, char *buf, size_t size) in write_filehandle() argument
393 len = exp_rootfh(netns(file), dom, path, &fh, maxsize); in write_filehandle()
433 static ssize_t write_threads(struct file *file, char *buf, size_t size) in write_threads() argument
437 struct net *net = netns(file); in write_threads()
446 rv = nfsd_svc(newthreads, net, file->f_cred); in write_threads()
477 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size) in write_pool_threads() argument
488 struct net *net = netns(file); in write_pool_threads()
564 static ssize_t __write_versions(struct file *file, char *buf, size_t size) in __write_versions() argument
571 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in __write_versions()
696 static ssize_t write_versions(struct file *file, char *buf, size_t size) in write_versions() argument
701 rv = __write_versions(file, buf, size); in write_versions()
799 static ssize_t __write_ports(struct file *file, char *buf, size_t size, in __write_ports() argument
806 return __write_ports_addfd(buf, net, file->f_cred); in __write_ports()
809 return __write_ports_addxprt(buf, net, file->f_cred); in __write_ports()
857 static ssize_t write_ports(struct file *file, char *buf, size_t size) in write_ports() argument
862 rv = __write_ports(file, buf, size, netns(file)); in write_ports()
891 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size) in write_maxblksize() argument
894 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_maxblksize()
940 static ssize_t write_maxconn(struct file *file, char *buf, size_t size) in write_maxconn() argument
943 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_maxconn()
958 static ssize_t __nfsd4_write_time(struct file *file, char *buf, size_t size, in __nfsd4_write_time() argument
990 static ssize_t nfsd4_write_time(struct file *file, char *buf, size_t size, in nfsd4_write_time() argument
996 rv = __nfsd4_write_time(file, buf, size, time, nn); in nfsd4_write_time()
1022 static ssize_t write_leasetime(struct file *file, char *buf, size_t size) in write_leasetime() argument
1024 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_leasetime()
1025 return nfsd4_write_time(file, buf, size, &nn->nfsd4_lease, nn); in write_leasetime()
1038 static ssize_t write_gracetime(struct file *file, char *buf, size_t size) in write_gracetime() argument
1040 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_gracetime()
1041 return nfsd4_write_time(file, buf, size, &nn->nfsd4_grace, nn); in write_gracetime()
1044 static ssize_t __write_recoverydir(struct file *file, char *buf, size_t size, in __write_recoverydir() argument
1093 static ssize_t write_recoverydir(struct file *file, char *buf, size_t size) in write_recoverydir() argument
1096 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_recoverydir()
1099 rv = __write_recoverydir(file, buf, size, nn); in write_recoverydir()
1124 static ssize_t write_v4_end_grace(struct file *file, char *buf, size_t size) in write_v4_end_grace() argument
1126 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_v4_end_grace()