From fcb0c2bc57aef0850fd62156e2fa63284955d7cf Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Wed, 17 Oct 2007 16:37:51 -0400 Subject: [PATCH] Unionfs: don't printk trivial message upon normal rename-copyup Signed-off-by: Erez Zadok --- fs/unionfs/rename.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } } -- 2.43.0