projects
/
wrapfs-3.5.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ae634d
)
Wrapfs: update nlinks after rename
author
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 23:37:14 +0000
(18:37 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 23:37:14 +0000
(18:37 -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 bf9b6ab2d370225118f488d2ed4757448192a217..d9d5875d859e91c7c04ae27c30c7a2af2560a965 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)
+ set_nlink(new_dentry->d_inode,
+ lower_new_dir_dentry->d_inode->i_nlink);
out_err:
mnt_drop_write(lower_new_path.mnt);