From: Erez Zadok Date: Wed, 17 Oct 2007 20:37:51 +0000 (-0400) Subject: Unionfs: don't printk trivial message upon normal rename-copyup X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=fcb0c2bc57aef0850fd62156e2fa63284955d7cf;p=unionfs-3.12.y.git Unionfs: don't printk trivial message upon normal rename-copyup Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index 91d41d4ce8a8..1ab474fc953b 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -40,10 +40,12 @@ static int __unionfs_rename(struct inode *old_dir, struct dentry *old_dentry, new_dentry, new_dentry->d_name.name, bindex); if (IS_ERR(lower_new_dentry)) { - printk(KERN_ERR "unionfs: error creating directory " - "tree for rename, bindex = %d, err = %ld\n", - bindex, PTR_ERR(lower_new_dentry)); err = PTR_ERR(lower_new_dentry); + if (err == -EROFS) + goto out; + printk(KERN_ERR "unionfs: error creating directory " + "tree for rename, bindex=%d err=%d\n", + bindex, err); goto out; } }