aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2010-09-23 10:26:58 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-09-23 10:34:21 -0400
commit049ef27b224ecc33958465fef83d5e4e8a056115 (patch)
treec4bec9c4f6b13958353cb1ee7001865779a5cd1e /fs
parent1e1405673e4e40a94ed7620553eb440a21040402 (diff)
nfsd: Export get_task_comm for nfsd
The git://linux-nfs.org/~bfields/linux.git nfsd-next branch doesn't compile when nfsd is a module with the following error: ERROR: "get_task_comm" [fs/nfsd/nfsd.ko] undefined! Replace the get_task_comm call with direct comm access, which is safe for current. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfsctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index b278e444e2f4..7b2fa1d25af7 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -129,12 +129,10 @@ static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size
129{ 129{
130 static int warned; 130 static int warned;
131 if (file->f_dentry->d_name.name[0] == '.' && !warned) { 131 if (file->f_dentry->d_name.name[0] == '.' && !warned) {
132 char name[sizeof(current->comm)];
133 printk(KERN_INFO 132 printk(KERN_INFO
134 "Warning: \"%s\" uses deprecated NFSD interface: %s." 133 "Warning: \"%s\" uses deprecated NFSD interface: %s."
135 " This will be removed in 2.6.40\n", 134 " This will be removed in 2.6.40\n",
136 get_task_comm(name, current), 135 current->comm, file->f_dentry->d_name.name);
137 file->f_dentry->d_name.name);
138 warned = 1; 136 warned = 1;
139 } 137 }
140 if (! file->private_data) { 138 if (! file->private_data) {