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

Benny Halevy bhalevy at panasas.com
Mon Feb 4 12:48:13 EST 2008


Applied onto the pnfs branch.

Benny

On Feb. 01, 2008, 21:14 +0200, andros at umich.edu wrote:
> 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;



More information about the pNFS mailing list