From 31e43b1bf6175e60f2f08bc3619e7724133c627d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 20 Jan 2004 03:17:14 -0800 Subject: [PATCH] [PATCH] smbfs: remove noisy printk's These printk's come out during normal usage, when accessing locked system files on the windows machines. --- fs/smbfs/file.c | 5 +---- fs/smbfs/proc.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/smbfs/file.c b/fs/smbfs/file.c index 92e7132ed1df5..c7723f981abf7 100644 --- a/fs/smbfs/file.c +++ b/fs/smbfs/file.c @@ -64,11 +64,8 @@ smb_readpage_sync(struct dentry *dentry, struct page *page) DENTRY_PATH(dentry), count, offset, rsize); result = smb_open(dentry, SMB_O_RDONLY); - if (result < 0) { - PARANOIA("%s/%s open failed, error=%d\n", - DENTRY_PATH(dentry), result); + if (result < 0) goto io_error; - } do { if (count < rsize) diff --git a/fs/smbfs/proc.c b/fs/smbfs/proc.c index 07c795f887160..20a12e8033836 100644 --- a/fs/smbfs/proc.c +++ b/fs/smbfs/proc.c @@ -1181,11 +1181,8 @@ smb_open(struct dentry *dentry, int wish) result = 0; if (!smb_is_open(inode)) result = smb_proc_open(server, dentry, wish); - if (result) { - PARANOIA("%s/%s open failed, result=%d\n", - DENTRY_PATH(dentry), result); + if (result) goto out; - } /* * A successful open means the path is still valid ... */ -- 2.53.0