diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index dbc09271af02..f533318b005f 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -73,7 +73,7 @@ int nfs4_map_errors(int err) | |||
73 | { | 73 | { |
74 | if (err < -1000) { | 74 | if (err < -1000) { |
75 | dprintk("%s could not handle NFSv4 error %d\n", | 75 | dprintk("%s could not handle NFSv4 error %d\n", |
76 | __FUNCTION__, -err); | 76 | __func__, -err); |
77 | return -EIO; | 77 | return -EIO; |
78 | } | 78 | } |
79 | return err; | 79 | return err; |
@@ -1578,7 +1578,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct | |||
1578 | goto out; | 1578 | goto out; |
1579 | /* Make sure server returned a different fsid for the referral */ | 1579 | /* Make sure server returned a different fsid for the referral */ |
1580 | if (nfs_fsid_equal(&NFS_SERVER(dir)->fsid, &locations->fattr.fsid)) { | 1580 | if (nfs_fsid_equal(&NFS_SERVER(dir)->fsid, &locations->fattr.fsid)) { |
1581 | dprintk("%s: server did not return a different fsid for a referral at %s\n", __FUNCTION__, name->name); | 1581 | dprintk("%s: server did not return a different fsid for a referral at %s\n", __func__, name->name); |
1582 | status = -EIO; | 1582 | status = -EIO; |
1583 | goto out; | 1583 | goto out; |
1584 | } | 1584 | } |
@@ -2211,7 +2211,7 @@ static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, | |||
2211 | }; | 2211 | }; |
2212 | int status; | 2212 | int status; |
2213 | 2213 | ||
2214 | dprintk("%s: dentry = %s/%s, cookie = %Lu\n", __FUNCTION__, | 2214 | dprintk("%s: dentry = %s/%s, cookie = %Lu\n", __func__, |
2215 | dentry->d_parent->d_name.name, | 2215 | dentry->d_parent->d_name.name, |
2216 | dentry->d_name.name, | 2216 | dentry->d_name.name, |
2217 | (unsigned long long)cookie); | 2217 | (unsigned long long)cookie); |
@@ -2223,7 +2223,7 @@ static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, | |||
2223 | 2223 | ||
2224 | nfs_invalidate_atime(dir); | 2224 | nfs_invalidate_atime(dir); |
2225 | 2225 | ||
2226 | dprintk("%s: returns %d\n", __FUNCTION__, status); | 2226 | dprintk("%s: returns %d\n", __func__, status); |
2227 | return status; | 2227 | return status; |
2228 | } | 2228 | } |
2229 | 2229 | ||
@@ -3342,7 +3342,7 @@ static void nfs4_lock_prepare(struct rpc_task *task, void *calldata) | |||
3342 | struct nfs4_lockdata *data = calldata; | 3342 | struct nfs4_lockdata *data = calldata; |
3343 | struct nfs4_state *state = data->lsp->ls_state; | 3343 | struct nfs4_state *state = data->lsp->ls_state; |
3344 | 3344 | ||
3345 | dprintk("%s: begin!\n", __FUNCTION__); | 3345 | dprintk("%s: begin!\n", __func__); |
3346 | if (nfs_wait_on_sequence(data->arg.lock_seqid, task) != 0) | 3346 | if (nfs_wait_on_sequence(data->arg.lock_seqid, task) != 0) |
3347 | return; | 3347 | return; |
3348 | /* Do we need to do an open_to_lock_owner? */ | 3348 | /* Do we need to do an open_to_lock_owner? */ |
@@ -3356,14 +3356,14 @@ static void nfs4_lock_prepare(struct rpc_task *task, void *calldata) | |||
3356 | data->arg.new_lock_owner = 0; | 3356 | data->arg.new_lock_owner = 0; |
3357 | data->timestamp = jiffies; | 3357 | data->timestamp = jiffies; |
3358 | rpc_call_start(task); | 3358 | rpc_call_start(task); |
3359 | dprintk("%s: done!, ret = %d\n", __FUNCTION__, data->rpc_status); | 3359 | dprintk("%s: done!, ret = %d\n", __func__, data->rpc_status); |
3360 | } | 3360 | } |
3361 | 3361 | ||
3362 | static void nfs4_lock_done(struct rpc_task *task, void *calldata) | 3362 | static void nfs4_lock_done(struct rpc_task *task, void *calldata) |
3363 | { | 3363 | { |
3364 | struct nfs4_lockdata *data = calldata; | 3364 | struct nfs4_lockdata *data = calldata; |
3365 | 3365 | ||
3366 | dprintk("%s: begin!\n", __FUNCTION__); | 3366 | dprintk("%s: begin!\n", __func__); |
3367 | 3367 | ||
3368 | data->rpc_status = task->tk_status; | 3368 | data->rpc_status = task->tk_status; |
3369 | if (RPC_ASSASSINATED(task)) | 3369 | if (RPC_ASSASSINATED(task)) |
@@ -3381,14 +3381,14 @@ static void nfs4_lock_done(struct rpc_task *task, void *calldata) | |||
3381 | renew_lease(NFS_SERVER(data->ctx->path.dentry->d_inode), data->timestamp); | 3381 | renew_lease(NFS_SERVER(data->ctx->path.dentry->d_inode), data->timestamp); |
3382 | } | 3382 | } |
3383 | out: | 3383 | out: |
3384 | dprintk("%s: done, ret = %d!\n", __FUNCTION__, data->rpc_status); | 3384 | dprintk("%s: done, ret = %d!\n", __func__, data->rpc_status); |
3385 | } | 3385 | } |
3386 | 3386 | ||
3387 | static void nfs4_lock_release(void *calldata) | 3387 | static void nfs4_lock_release(void *calldata) |
3388 | { | 3388 | { |
3389 | struct nfs4_lockdata *data = calldata; | 3389 | struct nfs4_lockdata *data = calldata; |
3390 | 3390 | ||
3391 | dprintk("%s: begin!\n", __FUNCTION__); | 3391 | dprintk("%s: begin!\n", __func__); |
3392 | nfs_free_seqid(data->arg.open_seqid); | 3392 | nfs_free_seqid(data->arg.open_seqid); |
3393 | if (data->cancelled != 0) { | 3393 | if (data->cancelled != 0) { |
3394 | struct rpc_task *task; | 3394 | struct rpc_task *task; |
@@ -3396,13 +3396,13 @@ static void nfs4_lock_release(void *calldata) | |||
3396 | data->arg.lock_seqid); | 3396 | data->arg.lock_seqid); |
3397 | if (!IS_ERR(task)) | 3397 | if (!IS_ERR(task)) |
3398 | rpc_put_task(task); | 3398 | rpc_put_task(task); |
3399 | dprintk("%s: cancelling lock!\n", __FUNCTION__); | 3399 | dprintk("%s: cancelling lock!\n", __func__); |
3400 | } else | 3400 | } else |
3401 | nfs_free_seqid(data->arg.lock_seqid); | 3401 | nfs_free_seqid(data->arg.lock_seqid); |
3402 | nfs4_put_lock_state(data->lsp); | 3402 | nfs4_put_lock_state(data->lsp); |
3403 | put_nfs_open_context(data->ctx); | 3403 | put_nfs_open_context(data->ctx); |
3404 | kfree(data); | 3404 | kfree(data); |
3405 | dprintk("%s: done!\n", __FUNCTION__); | 3405 | dprintk("%s: done!\n", __func__); |
3406 | } | 3406 | } |
3407 | 3407 | ||
3408 | static const struct rpc_call_ops nfs4_lock_ops = { | 3408 | static const struct rpc_call_ops nfs4_lock_ops = { |
@@ -3428,7 +3428,7 @@ static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *f | |||
3428 | }; | 3428 | }; |
3429 | int ret; | 3429 | int ret; |
3430 | 3430 | ||
3431 | dprintk("%s: begin!\n", __FUNCTION__); | 3431 | dprintk("%s: begin!\n", __func__); |
3432 | data = nfs4_alloc_lockdata(fl, nfs_file_open_context(fl->fl_file), | 3432 | data = nfs4_alloc_lockdata(fl, nfs_file_open_context(fl->fl_file), |
3433 | fl->fl_u.nfs4_fl.owner); | 3433 | fl->fl_u.nfs4_fl.owner); |
3434 | if (data == NULL) | 3434 | if (data == NULL) |
@@ -3451,7 +3451,7 @@ static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *f | |||
3451 | } else | 3451 | } else |
3452 | data->cancelled = 1; | 3452 | data->cancelled = 1; |
3453 | rpc_put_task(task); | 3453 | rpc_put_task(task); |
3454 | dprintk("%s: done, ret = %d!\n", __FUNCTION__, ret); | 3454 | dprintk("%s: done, ret = %d!\n", __func__, ret); |
3455 | return ret; | 3455 | return ret; |
3456 | } | 3456 | } |
3457 | 3457 | ||
@@ -3527,7 +3527,7 @@ static int _nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock | |||
3527 | /* Note: we always want to sleep here! */ | 3527 | /* Note: we always want to sleep here! */ |
3528 | request->fl_flags = fl_flags | FL_SLEEP; | 3528 | request->fl_flags = fl_flags | FL_SLEEP; |
3529 | if (do_vfs_lock(request->fl_file, request) < 0) | 3529 | if (do_vfs_lock(request->fl_file, request) < 0) |
3530 | printk(KERN_WARNING "%s: VFS is out of sync with lock manager!\n", __FUNCTION__); | 3530 | printk(KERN_WARNING "%s: VFS is out of sync with lock manager!\n", __func__); |
3531 | out_unlock: | 3531 | out_unlock: |
3532 | up_read(&clp->cl_sem); | 3532 | up_read(&clp->cl_sem); |
3533 | out: | 3533 | out: |
@@ -3665,12 +3665,12 @@ int nfs4_proc_fs_locations(struct inode *dir, const struct qstr *name, | |||
3665 | }; | 3665 | }; |
3666 | int status; | 3666 | int status; |
3667 | 3667 | ||
3668 | dprintk("%s: start\n", __FUNCTION__); | 3668 | dprintk("%s: start\n", __func__); |
3669 | nfs_fattr_init(&fs_locations->fattr); | 3669 | nfs_fattr_init(&fs_locations->fattr); |
3670 | fs_locations->server = server; | 3670 | fs_locations->server = server; |
3671 | fs_locations->nlocations = 0; | 3671 | fs_locations->nlocations = 0; |
3672 | status = rpc_call_sync(server->client, &msg, 0); | 3672 | status = rpc_call_sync(server->client, &msg, 0); |
3673 | dprintk("%s: returned status = %d\n", __FUNCTION__, status); | 3673 | dprintk("%s: returned status = %d\n", __func__, status); |
3674 | return status; | 3674 | return status; |
3675 | } | 3675 | } |
3676 | 3676 | ||