[PATCH 4/9] Unionfs: don't printk trivial message upon normal rename-copyup

2007-10-21 Thread Erez Zadok
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
---
 fs/unionfs/rename.c |8 +---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c
index 91d41d4..1ab474f 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;
}
}
-- 
1.5.2.2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 4/9] Unionfs: don't printk trivial message upon normal rename-copyup

2007-10-21 Thread Erez Zadok
Signed-off-by: Erez Zadok [EMAIL PROTECTED]
---
 fs/unionfs/rename.c |8 +---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c
index 91d41d4..1ab474f 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;
}
}
-- 
1.5.2.2

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/