diff options
Diffstat (limited to 'fs/nfs/callback_proc.c')
| -rw-r--r-- | fs/nfs/callback_proc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index 462cfceb50c5..97cf8f71451f 100644 --- a/fs/nfs/callback_proc.c +++ b/fs/nfs/callback_proc.c | |||
| @@ -5,25 +5,25 @@ | |||
| 5 | * | 5 | * |
| 6 | * NFSv4 callback procedures | 6 | * NFSv4 callback procedures |
| 7 | */ | 7 | */ |
| 8 | #include <linux/config.h> | ||
| 9 | #include <linux/nfs4.h> | 8 | #include <linux/nfs4.h> |
| 10 | #include <linux/nfs_fs.h> | 9 | #include <linux/nfs_fs.h> |
| 11 | #include "nfs4_fs.h" | 10 | #include "nfs4_fs.h" |
| 12 | #include "callback.h" | 11 | #include "callback.h" |
| 13 | #include "delegation.h" | 12 | #include "delegation.h" |
| 13 | #include "internal.h" | ||
| 14 | 14 | ||
| 15 | #define NFSDBG_FACILITY NFSDBG_CALLBACK | 15 | #define NFSDBG_FACILITY NFSDBG_CALLBACK |
| 16 | 16 | ||
| 17 | unsigned nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res) | 17 | unsigned nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res) |
| 18 | { | 18 | { |
| 19 | struct nfs4_client *clp; | 19 | struct nfs_client *clp; |
| 20 | struct nfs_delegation *delegation; | 20 | struct nfs_delegation *delegation; |
| 21 | struct nfs_inode *nfsi; | 21 | struct nfs_inode *nfsi; |
| 22 | struct inode *inode; | 22 | struct inode *inode; |
| 23 | 23 | ||
| 24 | res->bitmap[0] = res->bitmap[1] = 0; | 24 | res->bitmap[0] = res->bitmap[1] = 0; |
| 25 | res->status = htonl(NFS4ERR_BADHANDLE); | 25 | res->status = htonl(NFS4ERR_BADHANDLE); |
| 26 | clp = nfs4_find_client(&args->addr->sin_addr); | 26 | clp = nfs_find_client(args->addr, 4); |
| 27 | if (clp == NULL) | 27 | if (clp == NULL) |
| 28 | goto out; | 28 | goto out; |
| 29 | inode = nfs_delegation_find_inode(clp, &args->fh); | 29 | inode = nfs_delegation_find_inode(clp, &args->fh); |
| @@ -49,7 +49,7 @@ out_iput: | |||
| 49 | up_read(&nfsi->rwsem); | 49 | up_read(&nfsi->rwsem); |
| 50 | iput(inode); | 50 | iput(inode); |
| 51 | out_putclient: | 51 | out_putclient: |
| 52 | nfs4_put_client(clp); | 52 | nfs_put_client(clp); |
| 53 | out: | 53 | out: |
| 54 | dprintk("%s: exit with status = %d\n", __FUNCTION__, ntohl(res->status)); | 54 | dprintk("%s: exit with status = %d\n", __FUNCTION__, ntohl(res->status)); |
| 55 | return res->status; | 55 | return res->status; |
| @@ -57,12 +57,12 @@ out: | |||
| 57 | 57 | ||
| 58 | unsigned nfs4_callback_recall(struct cb_recallargs *args, void *dummy) | 58 | unsigned nfs4_callback_recall(struct cb_recallargs *args, void *dummy) |
| 59 | { | 59 | { |
| 60 | struct nfs4_client *clp; | 60 | struct nfs_client *clp; |
| 61 | struct inode *inode; | 61 | struct inode *inode; |
| 62 | unsigned res; | 62 | unsigned res; |
| 63 | 63 | ||
| 64 | res = htonl(NFS4ERR_BADHANDLE); | 64 | res = htonl(NFS4ERR_BADHANDLE); |
| 65 | clp = nfs4_find_client(&args->addr->sin_addr); | 65 | clp = nfs_find_client(args->addr, 4); |
| 66 | if (clp == NULL) | 66 | if (clp == NULL) |
| 67 | goto out; | 67 | goto out; |
| 68 | inode = nfs_delegation_find_inode(clp, &args->fh); | 68 | inode = nfs_delegation_find_inode(clp, &args->fh); |
| @@ -81,7 +81,7 @@ unsigned nfs4_callback_recall(struct cb_recallargs *args, void *dummy) | |||
| 81 | } | 81 | } |
| 82 | iput(inode); | 82 | iput(inode); |
| 83 | out_putclient: | 83 | out_putclient: |
| 84 | nfs4_put_client(clp); | 84 | nfs_put_client(clp); |
| 85 | out: | 85 | out: |
| 86 | dprintk("%s: exit with status = %d\n", __FUNCTION__, ntohl(res)); | 86 | dprintk("%s: exit with status = %d\n", __FUNCTION__, ntohl(res)); |
| 87 | return res; | 87 | return res; |
