projects
/
wrapfs-2.6.38.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ff2521
)
Wrapfs: update nlinks after rename
author
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 23:47:14 +0000
(18:47 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 23:47:14 +0000
(18:47 -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 ca130f54791f0af09fcc7da921837c8627b8a49b..a7684fa71b79215b84ce8861f00f0d6fdfa3e2ea 100644
(file)
--- a/
fs/wrapfs/inode.c
+++ b/
fs/wrapfs/inode.c
@@
-322,6
+322,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)
+ new_dentry->d_inode->i_nlink =
+ lower_new_dir_dentry->d_inode->i_nlink;
out_err:
mnt_drop_write(lower_new_path.mnt);