projects
/
unionfs-2.6.19.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c226489
)
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>
Wed, 17 Oct 2007 20:37:51 +0000
(16:37 -0400)
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 118bd57072f2ffbb593511bd038453db5c0375d4..b1b756c318400ddbfc897d0796d296ef82fbd3ef 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;
}
}