[pnfs] [PATCH 1/5] pnfs: move KERN_WARNING and KERN_ERR to dprintk

andros at umich.edu andros at umich.edu
Fri Feb 1 14:14:11 EST 2008


From: Andy Adamson <andros at umich.edu>

The below-threshold test can result in pnfs_update_layout, which also results
in pnfs_readpages failing.

Signed-off-by: Andy Adamson<andros at umich.edu>
---
 fs/nfs/pnfs.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 99eadb6..aaf850b 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -856,7 +856,7 @@ pnfs_update_layout(struct inode *ino,
 	BUG_ON(nfsi->current_layout != layout_new);
 
 	if (result) {
-		printk(KERN_ERR "%s: ERROR retrieving layout %d\n",
+		dprintk("%s: ERROR retrieving layout %d\n",
 		       __FUNCTION__, result);
 
 		switch (result) {
@@ -1431,8 +1431,7 @@ pnfs_readpages(struct nfs_read_data *rdata)
 				    IOMODE_READ,
 				    &lseg);
 	if (status) {
-		printk(KERN_WARNING
-		       "%s: ERROR %d from pnfs_update_layout\n",
+		dprintk("%s: ERROR %d from pnfs_update_layout\n",
 			__FUNCTION__, status);
 		status = 1;
 		goto out;
-- 
1.5.0.2



More information about the pNFS mailing list