projects
/
wrapfs-3.6.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c5fc66
)
Wrapfs: update nlinks after rename
author
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 22:57:13 +0000
(17:57 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 22:57:13 +0000
(17:57 -0500)
Signed-off-by: Logeswari P Viswanath <logeswari.pv@hpe.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/wrapfs/inode.c
b/fs/wrapfs/inode.c
index 8821a8e741b173526bb40c8681262bfc65291f83..d2773156157b0fe38969248c090d155e165e641f 100644
(file)
--- a/
fs/wrapfs/inode.c
+++ b/
fs/wrapfs/inode.c
@@
-275,6
+275,10
@@
static int wrapfs_rename(struct inode *old_dir, struct dentry *old_dentry,
fsstack_copy_inode_size(old_dir,
lower_old_dir_dentry->d_inode);
}
+ /* update the hardlink count */
+ if (new_dentry->d_inode)
+ set_nlink(new_dentry->d_inode,
+ lower_new_dir_dentry->d_inode->i_nlink);
out:
unlock_rename(lower_old_dir_dentry, lower_new_dir_dentry);