diff options
author | bookjovi@gmail.com <bookjovi@gmail.com> | 2010-12-11 00:21:17 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-12-17 15:48:20 -0500 |
commit | 5b6a599f0da3722dea9ecc01d97f54061662ce49 (patch) | |
tree | 5611e2b910f36609b9dd1d342cc34ef336198cae /fs | |
parent | 3942302ea9e1dffa933021b20bf1642046e7641b (diff) |
nfs: add missed CONFIG_NFSD_DEPRECATED
these pieces of code only make sense when CONFIG_NFSD_DEPRECATED enabled
Signed-off-by: Jovi Zhang <bookjovi@gmail.com>
fs/nfsd/nfsctl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 4514ebbee4d6..6840ec3ceecf 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -127,6 +127,7 @@ static ssize_t nfsctl_transaction_write(struct file *file, const char __user *bu | |||
127 | 127 | ||
128 | static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos) | 128 | static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos) |
129 | { | 129 | { |
130 | #ifdef CONFIG_NFSD_DEPRECATED | ||
130 | static int warned; | 131 | static int warned; |
131 | if (file->f_dentry->d_name.name[0] == '.' && !warned) { | 132 | if (file->f_dentry->d_name.name[0] == '.' && !warned) { |
132 | printk(KERN_INFO | 133 | printk(KERN_INFO |
@@ -135,6 +136,7 @@ static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size | |||
135 | current->comm, file->f_dentry->d_name.name); | 136 | current->comm, file->f_dentry->d_name.name); |
136 | warned = 1; | 137 | warned = 1; |
137 | } | 138 | } |
139 | #endif | ||
138 | if (! file->private_data) { | 140 | if (! file->private_data) { |
139 | /* An attempt to read a transaction file without writing | 141 | /* An attempt to read a transaction file without writing |
140 | * causes a 0-byte write so that the file can return | 142 | * causes a 0-byte write so that the file can return |