projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] r/o bind mounts: unlink: monitor i_nlink
[deliverable/linux.git]
/
fs
/
ext2
/
namei.c
diff --git
a/fs/ext2/namei.c
b/fs/ext2/namei.c
index 4ca8249853219cbee8529031e8602052cda46db2..e1af5b4cf80c100c26ce08a559bbdab12de8753b 100644
(file)
--- a/
fs/ext2/namei.c
+++ b/
fs/ext2/namei.c
@@
-326,7
+326,7
@@
static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry,
ext2_set_link(new_dir, new_de, new_page, old_inode);
new_inode->i_ctime = CURRENT_TIME_SEC;
if (dir_de)
-
new_inode->i_nlink--
;
+
drop_nlink(new_inode)
;
inode_dec_link_count(new_inode);
} else {
if (dir_de) {
This page took
0.039825 seconds
and
5
git commands to generate.