nfs: add missed CONFIG_NFSD_DEPRECATED
Subsystems (2)
PATCH 1/1 nfs: add missed CONFIG_NFSD_DEPRECATED
these pieces of code only make sense when CONFIG_NFSD_DEPRECATED enabled
Signed-off-by Jovi Zhang <[email protected]>
fs/nfsd/nfsctl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
fs/nfsd/nfsctl.c +2 -0
@@ -127,6 +127,7 @@ static ssize_t nfsctl_transaction_write(struct file *file, const char __user *bustatic ssize_t nfsctl_transaction_read (struct file *file,char __user *buf,size_t size,loff_t *pos) { +#ifdef CONFIG_NFSD_DEPRECATED static int warned;if (file->f_dentry->d_name.name[0 ] =='.' && !warned) { printk(KERN_INFO
@@ -135,6 +136,7 @@ static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size current->comm, file->f_dentry->d_name.name); warned = 1; } +#endif if (! file->private_data) {/* An attempt to read a transaction file without writing * causes a 0-byte write so that the file can return
Quoted 3 lines · On Sat, Dec 11, 2010 at 12:21:17AM -0500, [email protected] wrote:
these pieces of code only make sense when
CONFIG_NFSD_DEPRECATEDenabledSigned-off-by Jovi Zhang <[email protected]>
OK, thanks; applied for 2.6.38.--b.
Quoted 24 lines
fs/nfsd/nfsctl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)fs/nfsd/nfsctl.c +2
-0@@ -127,6 +127,7 @@ static ssize_t nfsctl_transaction_write(struct file *file, const char __user *bustatic ssize_t nfsctl_transaction_read (struct file *file,char __user *buf,size_t size,loff_t *pos) { +#ifdef CONFIG_NFSD_DEPRECATED static int warned;if (file->f_dentry->d_name.name[0 ] =='.' && !warned) { printk(KERN_INFO@@ -135,6 +136,7 @@ static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size current->comm, file->f_dentry->d_name.name); warned = 1; } +#endif if (! file->private_data) {/* An attempt to read a transaction file without writing * causes a 0-byte write so that the file can return