From: Andrew Morton Date: Tue, 20 Jan 2004 11:17:14 +0000 (-0800) Subject: [PATCH] smbfs: remove noisy printk's X-Git-Tag: v2.6.2-rc1~5 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=31e43b1bf6175e60f2f08bc3619e7724133c627d;p=history.git [PATCH] smbfs: remove noisy printk's These printk's come out during normal usage, when accessing locked system files on the windows machines. --- diff --git a/fs/smbfs/file.c b/fs/smbfs/file.c index 92e7132ed1df..c7723f981abf 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 07c795f88716..20a12e803383 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 ... */