nfs: replace remaining __FUNCTION__ occurrences
Subsystems (2)
PATCH 3/5 nfs: replace remaining __FUNCTION__ occurrences
From: Harvey Harrison <[email protected]>
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by Harvey Harrison <[email protected]>
Cc Trond Myklebust <[email protected]>
Cc "J. Bruce Fields" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/nfs/callback.c | 2 fs/nfs/callback_proc.c | 4 - fs/nfs/callback_xdr.c | 18 +++---- fs/nfs/client.c | 8 +-- fs/nfs/delegation.c | 4 - fs/nfs/dir.c | 18 +++---- fs/nfs/file.c | 2 fs/nfs/inode.c | 4 - fs/nfs/namespace.c | 8 +-- fs/nfs/nfs3proc.c | 6 +- fs/nfs/nfs4namespace.c | 12 ++-- fs/nfs/nfs4proc.c | 32 ++++++------ fs/nfs/nfs4renewd.c | 10 +-- fs/nfs/nfs4state.c | 6 +- fs/nfs/nfs4xdr.c | 100 +++++++++++++++++++-------------------- fs/nfs/proc.c | 8 +-- fs/nfs/read.c | 2 fs/nfs/super.c | 2 18 files changed, 123 insertions(+), 123 deletions(-)
fs/nfs/callback.c renamed from fs/nfs/callback.c~nfs-replace-remaining-__function__-occurrences +1 -1
@@ -182,7 +182,7 @@ static int nfs_callback_authenticate(strif (clp ==NULL )return SVC_DROP ; -dprintk ("%s: %s NFSv4 callback!\n" , __FUNCTION__, +dprintk ("%s: %s NFSv4 callback!\n" , __func__,svc_print_addr (rqstp, buf,sizeof (buf)));nfs_put_client (clp);
fs/nfs/callback_proc.c renamed from fs/nfs/callback_proc.c~nfs-replace-remaining-__function__-occurrences +2 -2
@@ -57,7 +57,7 @@ out_iput: out_putclient:nfs_put_client (clp); out: -dprintk ("%s: exit with status = %d\n" , __FUNCTION__,ntohl (res->status)); +dprintk ("%s: exit with status = %d\n" , __func__,ntohl (res->status));return res->status; }
@@ -98,6 +98,6 @@ __be32 nfs4_callback_recall(struct cb_renfs_put_client (prev); }while (clp !=NULL ); out: -dprintk ("%s: exit with status = %d\n" , __FUNCTION__,ntohl (res)); +dprintk ("%s: exit with status = %d\n" , __func__,ntohl (res));return res; }
fs/nfs/callback_xdr.c renamed from fs/nfs/callback_xdr.c~nfs-replace-remaining-__function__-occurrences +9 -9
@@ -141,7 +141,7 @@ static __be32 decode_compound_hdr_arg(st/* We do not like overly long tags! */ if (hdr->taglen >CB_OP_TAGLEN_MAXSZ -12 ) {printk ("NFSv4 CALLBACK %s: client sent tag of length %u\n" , - __FUNCTION__, hdr->taglen); + __func__, hdr->taglen);return htonl (NFS4ERR_RESOURCE ); } p =read_buf (xdr,12 );
@@ -151,7 +151,7 @@ static __be32 decode_compound_hdr_arg(st/* Check minor version is zero. */ if (minor_version !=0 ) {printk (KERN_WARNING "%s: NFSv4 server callback with illegal minor version %u!\n" , - __FUNCTION__, minor_version); + __func__, minor_version);return htonl (NFS4ERR_MINOR_VERS_MISMATCH ); } hdr->callback_ident =ntohl (*p++);
@@ -179,7 +179,7 @@ static __be32 decode_getattr_args(struct args->addr =svc_addr (rqstp); status =decode_bitmap (xdr, args->bitmap); out: -dprintk ("%s: exit with status = %d\n" , __FUNCTION__,ntohl (status)); +dprintk ("%s: exit with status = %d\n" , __func__,ntohl (status));return status; }
@@ -200,7 +200,7 @@ static __be32 decode_recall_args(struct args->truncate =ntohl (*p); status =decode_fh (xdr, &args->fh); out: -dprintk ("%s: exit with status = %d\n" , __FUNCTION__,ntohl (status)); +dprintk ("%s: exit with status = %d\n" , __func__,ntohl (status));return status; }
@@ -349,7 +349,7 @@ static __be32 encode_getattr_res(struct status =encode_attr_mtime (xdr, res->bitmap, &res->mtime); *savep =htonl ((unsigned int )((char *)xdr->p - (char *)(savep+1 ))); out: -dprintk ("%s: exit with status = %d\n" , __FUNCTION__,ntohl (status)); +dprintk ("%s: exit with status = %d\n" , __func__,ntohl (status));return status; }
@@ -363,7 +363,7 @@ static __be32 process_op(struct svc_rqstlong maxlen;__be32 res; -dprintk ("%s: start\n" , __FUNCTION__); +dprintk ("%s: start\n" , __func__); status =decode_op_hdr (xdr_in, &op_nr);if (likely (status ==0 )) {switch (op_nr) {
@@ -392,7 +392,7 @@ static __be32 process_op(struct svc_rqst status = res;if (op->encode_res !=NULL && status ==0 ) status = op->encode_res (rqstp, xdr_out, resp); -dprintk ("%s: done, status = %d\n" , __FUNCTION__,ntohl (status)); +dprintk ("%s: done, status = %d\n" , __func__,ntohl (status));return status; }
@@ -408,7 +408,7 @@ static __be32 nfs4_callback_compound(str__be32 status;unsigned int nops =1 ; -dprintk ("%s: start\n" , __FUNCTION__); +dprintk ("%s: start\n" , __func__);xdr_init_decode (&xdr_in, &rqstp->rq_arg, rqstp->rq_arg.head[0 ].iov_base);
@@ -431,7 +431,7 @@ static __be32 nfs4_callback_compound(str } *hdr_res.status = status; *hdr_res.nops =htonl (nops); -dprintk ("%s: done, status = %u\n" , __FUNCTION__,ntohl (status)); +dprintk ("%s: done, status = %u\n" , __func__,ntohl (status));return rpc_success; }
fs/nfs/client.c renamed from fs/nfs/client.c~nfs-replace-remaining-__function__-occurrences +4 -4
@@ -488,7 +488,7 @@ static int nfs_create_rpc_client(struct clnt =rpc_create (&args);if (IS_ERR (clnt)) {dprintk ("%s: cannot create RPC client. Error = %ld\n" , - __FUNCTION__,PTR_ERR (clnt)); + __func__,PTR_ERR (clnt));return PTR_ERR (clnt); }
@@ -576,7 +576,7 @@ static int nfs_init_server_rpcclient(str server->client =rpc_clone_client (clp->cl_rpcclient);if (IS_ERR (server->client)) { -dprintk ("%s: couldn't create rpc_client!\n" , __FUNCTION__); +dprintk ("%s: couldn't create rpc_client!\n" , __func__);return PTR_ERR (server->client); }
@@ -590,7 +590,7 @@ static int nfs_init_server_rpcclient(str auth =rpcauth_create (pseudoflavour, server->client);if (IS_ERR (auth)) { -dprintk ("%s: couldn't create credcache!\n" , __FUNCTION__); +dprintk ("%s: couldn't create credcache!\n" , __func__);return PTR_ERR (auth); } }
@@ -985,7 +985,7 @@ static int nfs4_init_client(struct nfs_c error =nfs_idmap_new (clp);if (error <0 ) {dprintk ("%s: failed to create idmapper. Error = %d\n" , - __FUNCTION__, error); + __func__, error); goto error; }__set_bit (NFS_CS_IDMAP , &clp->cl_res_state);
fs/nfs/delegation.c renamed from fs/nfs/delegation.c~nfs-replace-remaining-__function__-occurrences +2 -2
@@ -60,7 +60,7 @@ static int nfs_delegation_claim_locks(stswitch (status) {default :printk (KERN_ERR "%s: unhandled error %d.\n" , - __FUNCTION__, status); + __func__, status);case -NFS4ERR_EXPIRED :/* kill_proc(fl->fl_pid, SIGLOST, 1); */ case -NFS4ERR_STALE_CLIENTID :
@@ -186,7 +186,7 @@ int nfs_inode_set_delegation(struct inod*/ dfprintk (FILE ,"%s: server %s handed out " "a duplicate delegation!\n" , - __FUNCTION__, clp->cl_hostname); + __func__, clp->cl_hostname);if (delegation->type <= nfsi->delegation->type) { freeme = delegation; delegation =NULL ;
fs/nfs/dir.c renamed from fs/nfs/dir.c~nfs-replace-remaining-__function__-occurrences +9 -9
@@ -180,7 +180,7 @@ int nfs_readdir_filler(nfs_readdir_descrint error;dfprintk (DIRCACHE ,"NFS: %s: reading cookie %Lu into page %lu\n" , - __FUNCTION__, (long long )desc->entry->cookie, + __func__, (long long )desc->entry->cookie, page->index); again:
@@ -256,7 +256,7 @@ int find_dirent(nfs_readdir_descriptor_twhile ((status =dir_decode (desc)) ==0 ) {dfprintk (DIRCACHE ,"NFS: %s: examining cookie %Lu\n" , - __FUNCTION__, (unsigned long long )entry->cookie); + __func__, (unsigned long long )entry->cookie);if (entry->prev_cookie == *desc->dir_cookie)break ;if (loop_count++ >200 ) {
@@ -315,7 +315,7 @@ int find_dirent_page(nfs_readdir_descripint status;dfprintk (DIRCACHE ,"NFS: %s: searching page %ld for target %Lu\n" , - __FUNCTION__, desc->page_index, + __func__, desc->page_index, (long long ) *desc->dir_cookie);/* If we find the page in the page_cache, we cannot be sure
@@ -339,7 +339,7 @@ int find_dirent_page(nfs_readdir_descripif (status <0 )dir_page_release (desc); out: -dfprintk (DIRCACHE ,"NFS: %s: returns %d\n" , __FUNCTION__, status); +dfprintk (DIRCACHE ,"NFS: %s: returns %d\n" , __func__, status);return status; }
@@ -380,7 +380,7 @@ int readdir_search_pagecache(nfs_readdir } } -dfprintk (DIRCACHE ,"NFS: %s: returns %d\n" , __FUNCTION__, res); +dfprintk (DIRCACHE ,"NFS: %s: returns %d\n" , __func__, res);return res; }
@@ -506,7 +506,7 @@ int uncached_readdir(nfs_readdir_descrip desc->entry->eof =0 ; out:dfprintk (DIRCACHE ,"NFS: %s: returns %d\n" , - __FUNCTION__, status); + __func__, status);return status; out_release:dir_page_release (desc);
@@ -780,7 +780,7 @@ static int nfs_lookup_revalidate(structif (is_bad_inode (inode)) {dfprintk (LOOKUPCACHE ,"%s: %s/%s has dud inode\n" , - __FUNCTION__, dentry->d_parent->d_name.name, + __func__, dentry->d_parent->d_name.name, dentry->d_name.name); goto out_bad; }
@@ -808,7 +808,7 @@ static int nfs_lookup_revalidate(structunlock_kernel ();dput (parent);dfprintk (LOOKUPCACHE ,"NFS: %s(%s/%s) is valid\n" , - __FUNCTION__, dentry->d_parent->d_name.name, + __func__, dentry->d_parent->d_name.name, dentry->d_name.name);return 1 ; out_zap_parent:
@@ -827,7 +827,7 @@ out_zap_parent:unlock_kernel ();dput (parent);dfprintk (LOOKUPCACHE ,"NFS: %s(%s/%s) is invalid\n" , - __FUNCTION__, dentry->d_parent->d_name.name, + __func__, dentry->d_parent->d_name.name, dentry->d_name.name);return 0 ; }
fs/nfs/file.c renamed from fs/nfs/file.c~nfs-replace-remaining-__function__-occurrences +1 -1
@@ -526,7 +526,7 @@ static int do_vfs_lock(struct file *fileif (res <0 )dprintk (KERN_WARNING "%s: VFS is out of sync with lock manager" " - error %d!\n" , - __FUNCTION__, res); + __func__, res);return res; }
fs/nfs/inode.c renamed from fs/nfs/inode.c~nfs-replace-remaining-__function__-occurrences +2 -2
@@ -995,7 +995,7 @@ static int nfs_update_inode(struct inodeunsigned long now = jiffies;dfprintk (VFS ,"NFS: %s(%s/%ld ct=%d info=0x%x)\n" , - __FUNCTION__, inode->i_sb->s_id, inode->i_ino, + __func__, inode->i_sb->s_id, inode->i_ino,atomic_read (&inode->i_count), fattr->valid);if (nfsi->fileid != fattr->fileid)
@@ -1119,7 +1119,7 @@ static int nfs_update_inode(struct inode* Big trouble! The inode has become a different object. */ printk (KERN_DEBUG "%s: inode %ld mode changed, %07o to %07o\n" , - __FUNCTION__, inode->i_ino, inode->i_mode, fattr->mode); + __func__, inode->i_ino, inode->i_mode, fattr->mode); out_err:/* * No need to worry about unhashing the dentry, as the
fs/nfs/namespace.c renamed from fs/nfs/namespace.c~nfs-replace-remaining-__function__-occurrences +4 -4
@@ -106,7 +106,7 @@ static void * nfs_follow_mountpoint(strudprintk ("--> nfs_follow_mountpoint()\n" );BUG_ON (IS_ROOT (dentry)); -dprintk ("%s: enter\n" , __FUNCTION__); +dprintk ("%s: enter\n" , __func__);dput (nd->path.dentry); nd->path.dentry =dget (dentry);
@@ -143,7 +143,7 @@ static void * nfs_follow_mountpoint(stru nd->path.dentry =dget (mnt->mnt_root);schedule_delayed_work (&nfs_automount_task, nfs_mountpoint_expiry_timeout); out: -dprintk ("%s: done, returned %d\n" , __FUNCTION__, err); +dprintk ("%s: done, returned %d\n" , __func__, err);dprintk ("<-- nfs_follow_mountpoint() = %d\n" , err);return ERR_PTR (err);
@@ -230,7 +230,7 @@ static struct vfsmount *nfs_do_submount(dprintk ("--> nfs_do_submount()\n" ); -dprintk ("%s: submounting on %s/%s\n" , __FUNCTION__, +dprintk ("%s: submounting on %s/%s\n" , __func__, dentry->d_parent->d_name.name, dentry->d_name.name);if (page ==NULL )
@@ -243,7 +243,7 @@ static struct vfsmount *nfs_do_submount( free_page:free_page ((unsigned long )page); out: -dprintk ("%s: done\n" , __FUNCTION__); +dprintk ("%s: done\n" , __func__);dprintk ("<-- nfs_do_submount() = %p\n" , mnt);return mnt;
fs/nfs/nfs3proc.c renamed from fs/nfs/nfs3proc.c~nfs-replace-remaining-__function__-occurrences +3 -3
@@ -63,15 +63,15 @@ do_proc_get_root(struct rpc_clnt *client };int status; -dprintk ("%s: call fsinfo\n" , __FUNCTION__); +dprintk ("%s: call fsinfo\n" , __func__);nfs_fattr_init (info->fattr); status =rpc_call_sync (client, &msg,0 ); -dprintk ("%s: reply fsinfo: %d\n" , __FUNCTION__, status); +dprintk ("%s: reply fsinfo: %d\n" , __func__, status);if (!(info->fattr->valid &NFS_ATTR_FATTR )) { msg.rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR ]; msg.rpc_resp = info->fattr; status =rpc_call_sync (client, &msg,0 ); -dprintk ("%s: reply getattr: %d\n" , __FUNCTION__, status); +dprintk ("%s: reply getattr: %d\n" , __func__, status); }return status; }
fs/nfs/nfs4namespace.c renamed from fs/nfs/nfs4namespace.c~nfs-replace-remaining-__function__-occurrences +6 -6
@@ -86,7 +86,7 @@ static int nfs4_validate_fspath(const stif (strncmp (path, fs_path,strlen (fs_path)) !=0 ) {dprintk ("%s: path %s does not begin with fsroot %s\n" , - __FUNCTION__, path, fs_path); + __func__, path, fs_path);return -ENOENT ; }
@@ -134,7 +134,7 @@ static struct vfsmount *nfs_follow_referif (locations ==NULL || locations->nlocations <=0 ) goto out; -dprintk ("%s: referral at %s/%s\n" , __FUNCTION__, +dprintk ("%s: referral at %s/%s\n" , __func__, dentry->d_parent->d_name.name, dentry->d_name.name); page = (char *)__get_free_page (GFP_USER );
@@ -204,7 +204,7 @@ static struct vfsmount *nfs_follow_refer out:free_page ((unsigned long ) page);free_page ((unsigned long ) page2); -dprintk ("%s: done\n" , __FUNCTION__); +dprintk ("%s: done\n" , __func__);return mnt; }
@@ -223,7 +223,7 @@ struct vfsmount *nfs_do_refmount(const sint err;/* BUG_ON(IS_ROOT(dentry)); */ -dprintk ("%s: enter\n" , __FUNCTION__); +dprintk ("%s: enter\n" , __func__); page =alloc_page (GFP_KERNEL );if (page ==NULL )
@@ -238,7 +238,7 @@ struct vfsmount *nfs_do_refmount(const s parent =dget_parent (dentry);dprintk ("%s: getting locations for %s/%s\n" , - __FUNCTION__, parent->d_name.name, dentry->d_name.name); + __func__, parent->d_name.name, dentry->d_name.name); err =nfs4_proc_fs_locations (parent->d_inode, &dentry->d_name, fs_locations, page);dput (parent);
@@ -252,6 +252,6 @@ out_free:__free_page (page);kfree (fs_locations); out: -dprintk ("%s: done\n" , __FUNCTION__); +dprintk ("%s: done\n" , __func__);return mnt; }
fs/nfs/nfs4proc.c renamed from fs/nfs/nfs4proc.c~nfs-replace-remaining-__function__-occurrences +16 -16
@@ -73,7 +73,7 @@ int nfs4_map_errors(int err) {if (err <-1000 ) {dprintk ("%s could not handle NFSv4 error %d\n" , - __FUNCTION__, -err); + __func__, -err);return -EIO ; }return err;
@@ -1578,7 +1578,7 @@ static int nfs4_get_referral(struct inod goto out;/* Make sure server returned a different fsid for the referral */ if (nfs_fsid_equal (&NFS_SERVER (dir)->fsid, &locations->fattr.fsid)) { -dprintk ("%s: server did not return a different fsid for a referral at %s\n" , __FUNCTION__, name->name); +dprintk ("%s: server did not return a different fsid for a referral at %s\n" , __func__, name->name); status = -EIO ; goto out; }
@@ -2211,7 +2211,7 @@ static int _nfs4_proc_readdir(struct den };int status; -dprintk ("%s: dentry = %s/%s, cookie = %Lu\n" , __FUNCTION__, +dprintk ("%s: dentry = %s/%s, cookie = %Lu\n" , __func__, dentry->d_parent->d_name.name, dentry->d_name.name, (unsigned long long )cookie);
@@ -2223,7 +2223,7 @@ static int _nfs4_proc_readdir(struct dennfs_invalidate_atime (dir); -dprintk ("%s: returns %d\n" , __FUNCTION__, status); +dprintk ("%s: returns %d\n" , __func__, status);return status; }
@@ -3342,7 +3342,7 @@ static void nfs4_lock_prepare(struct rpcstruct nfs4_lockdata *data = calldata;struct nfs4_state *state = data->lsp->ls_state; -dprintk ("%s: begin!\n" , __FUNCTION__); +dprintk ("%s: begin!\n" , __func__);if (nfs_wait_on_sequence (data->arg.lock_seqid, task) !=0 )return ;/* Do we need to do an open_to_lock_owner? */
@@ -3356,14 +3356,14 @@ static void nfs4_lock_prepare(struct rpc data->arg.new_lock_owner =0 ; data->timestamp = jiffies;rpc_call_start (task); -dprintk ("%s: done!, ret = %d\n" , __FUNCTION__, data->rpc_status); +dprintk ("%s: done!, ret = %d\n" , __func__, data->rpc_status); }static void nfs4_lock_done (struct rpc_task *task,void *calldata) {struct nfs4_lockdata *data = calldata; -dprintk ("%s: begin!\n" , __FUNCTION__); +dprintk ("%s: begin!\n" , __func__); data->rpc_status = task->tk_status;if (RPC_ASSASSINATED (task))
@@ -3381,14 +3381,14 @@ static void nfs4_lock_done(struct rpc_tarenew_lease (NFS_SERVER (data->ctx->path.dentry->d_inode), data->timestamp); } out: -dprintk ("%s: done, ret = %d!\n" , __FUNCTION__, data->rpc_status); +dprintk ("%s: done, ret = %d!\n" , __func__, data->rpc_status); }static void nfs4_lock_release (void *calldata) {struct nfs4_lockdata *data = calldata; -dprintk ("%s: begin!\n" , __FUNCTION__); +dprintk ("%s: begin!\n" , __func__);nfs_free_seqid (data->arg.open_seqid);if (data->cancelled !=0 ) {struct rpc_task *task;
@@ -3396,13 +3396,13 @@ static void nfs4_lock_release(void *call data->arg.lock_seqid);if (!IS_ERR (task))rpc_put_task (task); -dprintk ("%s: cancelling lock!\n" , __FUNCTION__); +dprintk ("%s: cancelling lock!\n" , __func__); }else nfs_free_seqid (data->arg.lock_seqid);nfs4_put_lock_state (data->lsp);put_nfs_open_context (data->ctx);kfree (data); -dprintk ("%s: done!\n" , __FUNCTION__); +dprintk ("%s: done!\n" , __func__); }static const struct rpc_call_ops nfs4_lock_ops = {
@@ -3428,7 +3428,7 @@ static int _nfs4_do_setlk(struct nfs4_st };int ret; -dprintk ("%s: begin!\n" , __FUNCTION__); +dprintk ("%s: begin!\n" , __func__); data =nfs4_alloc_lockdata (fl,nfs_file_open_context (fl->fl_file), fl->fl_u.nfs4_fl.owner);if (data ==NULL )
@@ -3451,7 +3451,7 @@ static int _nfs4_do_setlk(struct nfs4_st }else data->cancelled =1 ;rpc_put_task (task); -dprintk ("%s: done, ret = %d!\n" , __FUNCTION__, ret); +dprintk ("%s: done, ret = %d!\n" , __func__, ret);return ret; }
@@ -3527,7 +3527,7 @@ static int _nfs4_proc_setlk(struct nfs4_/* Note: we always want to sleep here! */ request->fl_flags = fl_flags |FL_SLEEP ;if (do_vfs_lock (request->fl_file, request) <0 ) -printk (KERN_WARNING "%s: VFS is out of sync with lock manager!\n" , __FUNCTION__); +printk (KERN_WARNING "%s: VFS is out of sync with lock manager!\n" , __func__); out_unlock:up_read (&clp->cl_sem); out:
@@ -3665,12 +3665,12 @@ int nfs4_proc_fs_locations(struct inode };int status; -dprintk ("%s: start\n" , __FUNCTION__); +dprintk ("%s: start\n" , __func__);nfs_fattr_init (&fs_locations->fattr); fs_locations->server = server; fs_locations->nlocations =0 ; status =rpc_call_sync (server->client, &msg,0 ); -dprintk ("%s: returned status = %d\n" , __FUNCTION__, status); +dprintk ("%s: returned status = %d\n" , __func__, status);return status; }
fs/nfs/nfs4renewd.c renamed from fs/nfs/nfs4renewd.c~nfs-replace-remaining-__function__-occurrences +5 -5
@@ -66,7 +66,7 @@ nfs4_renew_state(struct work_struct *worunsigned long last, now;down_read (&clp->cl_sem); -dprintk ("%s: start\n" , __FUNCTION__); +dprintk ("%s: start\n" , __func__);/* Are there any active superblocks? */ if (list_empty (&clp->cl_superblocks)) goto out;
@@ -92,17 +92,17 @@ nfs4_renew_state(struct work_struct *worspin_lock (&clp->cl_lock); }else dprintk ("%s: failed to call renewd. Reason: lease not expired \n" , - __FUNCTION__); + __func__);if (timeout <5 *HZ )/* safeguard */ timeout =5 *HZ ;dprintk ("%s: requeueing work. Lease period = %ld\n" , - __FUNCTION__, (timeout +HZ -1 ) /HZ ); + __func__, (timeout +HZ -1 ) /HZ );cancel_delayed_work (&clp->cl_renewd);schedule_delayed_work (&clp->cl_renewd, timeout);spin_unlock (&clp->cl_lock); out:up_read (&clp->cl_sem); -dprintk ("%s: done\n" , __FUNCTION__); +dprintk ("%s: done\n" , __func__); }/* Must be called with clp->cl_sem locked for writes */
@@ -117,7 +117,7 @@ nfs4_schedule_state_renewal(struct nfs_cif (timeout <5 *HZ ) timeout =5 *HZ ;dprintk ("%s: requeueing work. Lease period = %ld\n" , - __FUNCTION__, (timeout +HZ -1 ) /HZ ); + __func__, (timeout +HZ -1 ) /HZ );cancel_delayed_work (&clp->cl_renewd);schedule_delayed_work (&clp->cl_renewd, timeout);set_bit (NFS_CS_RENEWD , &clp->cl_res_state);
fs/nfs/nfs4state.c renamed from fs/nfs/nfs4state.c~nfs-replace-remaining-__function__-occurrences +3 -3
@@ -828,7 +828,7 @@ static int nfs4_reclaim_locks(struct nfsswitch (status) {default :printk (KERN_ERR "%s: unhandled error %d. Zeroing state\n" , - __FUNCTION__, status); + __func__, status);case -NFS4ERR_EXPIRED :case -NFS4ERR_NO_GRACE :case -NFS4ERR_RECLAIM_BAD :
@@ -869,14 +869,14 @@ static int nfs4_reclaim_open_state(struclist_for_each_entry (lock, &state->lock_states, ls_locks) {if (!(lock->ls_flags &NFS_LOCK_INITIALIZED ))printk ("%s: Lock reclaim failed!\n" , - __FUNCTION__); + __func__); }continue ; }switch (status) {default :printk (KERN_ERR "%s: unhandled error %d. Zeroing state\n" , - __FUNCTION__, status); + __func__, status);case -ENOENT :case -NFS4ERR_RECLAIM_BAD :case -NFS4ERR_RECLAIM_CONFLICT :
fs/nfs/nfs4xdr.c renamed from fs/nfs/nfs4xdr.c~nfs-replace-remaining-__function__-occurrences +50 -50
377 lines not on this page · raw message
fs/nfs/proc.c renamed from fs/nfs/proc.c~nfs-replace-remaining-__function__-occurrences +4 -4
@@ -63,17 +63,17 @@ nfs_proc_get_root(struct nfs_server *ser };int status; -dprintk ("%s: call getattr\n" , __FUNCTION__); +dprintk ("%s: call getattr\n" , __func__);nfs_fattr_init (fattr); status =rpc_call_sync (server->nfs_client->cl_rpcclient, &msg,0 ); -dprintk ("%s: reply getattr: %d\n" , __FUNCTION__, status); +dprintk ("%s: reply getattr: %d\n" , __func__, status);if (status)return status; -dprintk ("%s: call statfs\n" , __FUNCTION__); +dprintk ("%s: call statfs\n" , __func__); msg.rpc_proc = &nfs_procedures[NFSPROC_STATFS ]; msg.rpc_resp = &fsinfo; status =rpc_call_sync (server->nfs_client->cl_rpcclient, &msg,0 ); -dprintk ("%s: reply statfs: %d\n" , __FUNCTION__, status); +dprintk ("%s: reply statfs: %d\n" , __func__, status);if (status)return status; info->rtmax =NFS_MAXDATA ;
fs/nfs/read.c renamed from fs/nfs/read.c~nfs-replace-remaining-__function__-occurrences +1 -1
@@ -329,7 +329,7 @@ int nfs_readpage_result(struct rpc_task {int status; -dprintk ("NFS: %s: %5u, (status %d)\n" , __FUNCTION__, task->tk_pid, +dprintk ("NFS: %s: %5u, (status %d)\n" , __func__, task->tk_pid, task->tk_status); status =NFS_PROTO (data->inode)->read_done (task, data);
fs/nfs/super.c renamed from fs/nfs/super.c~nfs-replace-remaining-__function__-occurrences +1 -1
@@ -405,7 +405,7 @@ static int nfs_statfs(struct dentry *denreturn 0 ; out_err: -dprintk ("%s: statfs error = %d\n" , __FUNCTION__, -error); +dprintk ("%s: statfs error = %d\n" , __func__, -error);unlock_kernel ();return error; }
_