From: Erez Zadok Date: Sun, 18 Nov 2007 04:38:17 +0000 (-0500) Subject: Unionfs: don't printk an error if it's due to common copyup X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=1bfcc9dc5367cae718b350cc012aa334fa249998;p=unionfs-odf.git Unionfs: don't printk an error if it's due to common copyup Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index 3e1adde8c0..43a7b01ce3 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -90,7 +90,7 @@ static int __unionfs_rename(struct inode *old_dir, struct dentry *old_dentry, bindex); if (IS_ERR(lower_new_dentry)) { err = PTR_ERR(lower_new_dentry); - if (err == -EROFS) + if (IS_COPYUP_ERR(err)) goto out; printk(KERN_ERR "unionfs: error creating directory " "tree for rename, bindex=%d err=%d\n",