projects
/
unionfs-2.6.34.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d7fd41
)
Unionfs: don't printk trivial message upon normal rename-copyup
author
Erez Zadok
<ezk@cs.sunysb.edu>
Wed, 17 Oct 2007 20:37:51 +0000
(16:37 -0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Sun, 23 Feb 2014 19:04:40 +0000
(14:04 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/rename.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/rename.c
b/fs/unionfs/rename.c
index 91d41d4ce8a80c4f991e06cb5c3a642cf7757b4d..1ab474fc953b228d9a8e6b4489fa0ed0802d7906 100644
(file)
--- 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;
}
}