Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFS: move dprintk after nfs_alloc_fattr in nfs3_proc_lookup

In nfs3_proc_lookup, if nfs_alloc_fattr fails, will only print
"NFS call lookup". This may be confusing, move dprintk after
nfs_alloc_fattr.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Xu Wang and committed by
Anna Schumaker
00a7a00e 9cb1fd0e

+1 -1
+1 -1
fs/nfs/nfs3proc.c
··· 179 179 if (nfs_lookup_is_soft_revalidate(dentry)) 180 180 task_flags |= RPC_TASK_TIMEOUT; 181 181 182 - dprintk("NFS call lookup %pd2\n", dentry); 183 182 res.dir_attr = nfs_alloc_fattr(); 184 183 if (res.dir_attr == NULL) 185 184 return -ENOMEM; 186 185 186 + dprintk("NFS call lookup %pd2\n", dentry); 187 187 nfs_fattr_init(fattr); 188 188 status = rpc_call_sync(NFS_CLIENT(dir), &msg, task_flags); 189 189 nfs_refresh_inode(dir, res.dir_attr);