tag | line | file | source code |
server | 65 | fs/nfs/inode.c | struct nfs_server *server; |
server | 97 | fs/nfs/inode.c | server = &sb->u.nfs_sb.s_server; |
server | 98 | fs/nfs/inode.c | server->file = filp; |
server | 99 | fs/nfs/inode.c | server->lock = 0; |
server | 100 | fs/nfs/inode.c | server->wait = NULL; |
server | 101 | fs/nfs/inode.c | server->flags = data->flags; |
server | 102 | fs/nfs/inode.c | server->rsize = data->rsize; |
server | 103 | fs/nfs/inode.c | if (server->rsize <= 0) |
server | 104 | fs/nfs/inode.c | server->rsize = NFS_DEF_FILE_IO_BUFFER_SIZE; |
server | 105 | fs/nfs/inode.c | else if (server->rsize >= NFS_MAX_FILE_IO_BUFFER_SIZE) |
server | 106 | fs/nfs/inode.c | server->rsize = NFS_MAX_FILE_IO_BUFFER_SIZE; |
server | 107 | fs/nfs/inode.c | server->wsize = data->wsize; |
server | 108 | fs/nfs/inode.c | if (server->wsize <= 0) |
server | 109 | fs/nfs/inode.c | server->wsize = NFS_DEF_FILE_IO_BUFFER_SIZE; |
server | 110 | fs/nfs/inode.c | else if (server->wsize >= NFS_MAX_FILE_IO_BUFFER_SIZE) |
server | 111 | fs/nfs/inode.c | server->wsize = NFS_MAX_FILE_IO_BUFFER_SIZE; |
server | 112 | fs/nfs/inode.c | server->timeo = data->timeo*HZ/10; |
server | 113 | fs/nfs/inode.c | server->retrans = data->retrans; |
server | 114 | fs/nfs/inode.c | server->acregmin = data->acregmin*HZ; |
server | 115 | fs/nfs/inode.c | server->acregmax = data->acregmax*HZ; |
server | 116 | fs/nfs/inode.c | server->acdirmin = data->acdirmin*HZ; |
server | 117 | fs/nfs/inode.c | server->acdirmax = data->acdirmax*HZ; |
server | 118 | fs/nfs/inode.c | strcpy(server->hostname, data->hostname); |
server | 239 | fs/nfs/proc.c | int nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 247 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 252 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 275 | fs/nfs/proc.c | int nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 283 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 289 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 312 | fs/nfs/proc.c | int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, const char *name, |
server | 324 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 330 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 354 | fs/nfs/proc.c | int nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 361 | fs/nfs/proc.c | if (!(*p0 = nfs_rpc_alloc(server->rsize))) |
server | 366 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0) |
server | 389 | fs/nfs/proc.c | int nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 398 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 406 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 435 | fs/nfs/proc.c | int nfs_proc_write(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 443 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 452 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 475 | fs/nfs/proc.c | int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
server | 484 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 491 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 515 | fs/nfs/proc.c | int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
server | 522 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 528 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 550 | fs/nfs/proc.c | int nfs_proc_rename(struct nfs_server *server, |
server | 559 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 567 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 589 | fs/nfs/proc.c | int nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 597 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 604 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 626 | fs/nfs/proc.c | int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
server | 634 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 642 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 664 | fs/nfs/proc.c | int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
server | 673 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 680 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 704 | fs/nfs/proc.c | int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
server | 711 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 717 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 739 | fs/nfs/proc.c | int nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 750 | fs/nfs/proc.c | size = server->rsize; |
server | 751 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 758 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 795 | fs/nfs/proc.c | int nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 803 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 808 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 52 | fs/nfs/sock.c | static int do_nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size) |
server | 78 | fs/nfs/sock.c | file = server->file; |
server | 86 | fs/nfs/sock.c | init_timeout = server->timeo; |
server | 88 | fs/nfs/sock.c | retrans = server->retrans; |
server | 90 | fs/nfs/sock.c | server_name = server->hostname; |
server | 96 | fs/nfs/sock.c | | ((server->flags & NFS_MOUNT_INTR) |
server | 136 | fs/nfs/sock.c | if (server->flags & NFS_MOUNT_SOFT) { |
server | 230 | fs/nfs/sock.c | int nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size) |
server | 234 | fs/nfs/sock.c | while (server->lock) |
server | 235 | fs/nfs/sock.c | sleep_on(&server->wait); |
server | 236 | fs/nfs/sock.c | server->lock = 1; |
server | 237 | fs/nfs/sock.c | result = do_nfs_rpc_call(server, start, end, size); |
server | 238 | fs/nfs/sock.c | server->lock = 0; |
server | 239 | fs/nfs/sock.c | wake_up(&server->wait); |
server | 52 | include/linux/nfs_fs.h | extern int nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 54 | include/linux/nfs_fs.h | extern int nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 56 | include/linux/nfs_fs.h | extern int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, |
server | 59 | include/linux/nfs_fs.h | extern int nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 62 | include/linux/nfs_fs.h | extern int nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 65 | include/linux/nfs_fs.h | extern int nfs_proc_write(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 68 | include/linux/nfs_fs.h | extern int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
server | 71 | include/linux/nfs_fs.h | extern int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, |
server | 73 | include/linux/nfs_fs.h | extern int nfs_proc_rename(struct nfs_server *server, |
server | 76 | include/linux/nfs_fs.h | extern int nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 78 | include/linux/nfs_fs.h | extern int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
server | 80 | include/linux/nfs_fs.h | extern int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
server | 83 | include/linux/nfs_fs.h | extern int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, |
server | 85 | include/linux/nfs_fs.h | extern int nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 87 | include/linux/nfs_fs.h | extern int nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 92 | include/linux/nfs_fs.h | extern int nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size); |