cifs: Use #define in cifs_dbg
Subsystems (2)
PATCH 1/1 cifs: Use #define in cifs_dbg
All other uses of cifs_dbg use defines so change this one.
--- fs/cifs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/cifs/inode.c +2 -2
@@ -653,8 +653,8 @@ cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info,*/ if ((fattr->cf_nlink <1 ) && !tcon->unix_ext && !info->DeletePending) { -cifs_dbg (1 ,"bogus file nlink value %u\n" , - fattr->cf_nlink); +cifs_dbg (VFS ,"bogus file nlink value %u\n" , + fattr->cf_nlink); fattr->cf_flags |=CIFS_FATTR_UNKNOWN_NLINK ; } }
fs/cifs/inode.c cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info, · line 657
Quoted 2 lines · Joe Perches
fs/cifs/inode.c +2
-0+cifs_dbg (VFS ,"bogus file nlink value %u\n" , + fattr->cf_nlink);
Good catch :)
I realize that 1 is VFS but this should probably be FYI.
Cheers,
Signature · 4 lines
Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)
Quoted 6 lines · Aurélien Aptel
fs/cifs/inode.c cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info, · line 657
Quoted 2 lines · Joe Perches
fs/cifs/inode.c +2
-0+cifs_dbg (VFS ,"bogus file nlink value %u\n" , + fattr->cf_nlink);Good catch :)
I realize that 1 is VFS but this should probably be FYI.
change it as you please.
fyi:
Perhaps commit f2f176b41 ("CIFS: add ONCE flag for cifs_dbg type") may have increased object size quite a bit as it now tests an external variable.
Seems like a plausible debug (VFS not FYI) msg. If delete is not
pending, it is a little strange if nlink is 0. merged into cifs-2.6.git for-next
Quoted 14 lines · Aurélien Aptel
fs/cifs/inode.c cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info, · line 657
Quoted 2 lines · Joe Perches
fs/cifs/inode.c +2
-0+cifs_dbg (VFS ,"bogus file nlink value %u\n" , + fattr->cf_nlink);Good catch :)
I realize that 1 is VFS but this should probably be FYI.Cheers,
--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)
Signature · 3 lines
Thanks, Steve