Unionfs: don't printk an error if it's due to common copyup
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 18 Nov 2007 04:38:17 +0000 (23:38 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:16 +0000 (19:03 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/rename.c

index 3e1adde8c04d97616ed18f6a37be65a27ca60768..43a7b01ce31f24195f17e6a3076627528f8e7a6b 100644 (file)
@@ -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",