From: Erez Zadok Date: Fri, 16 Nov 2007 18:45:33 +0000 (-0500) Subject: Unionfs: don't printk trivial message upon normal rename-copyup X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=531e9ff075a35ce1e360a20ca9fd1e2c8311ecfe;p=unionfs-odf.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 6cc7923959..3e1adde8c0 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -89,10 +89,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; } }