projects
/
wrapfs-2.6.35.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
460432d
)
Wrapfs: update nlinks after rename
author
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 23:51:34 +0000
(18:51 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 14 Dec 2015 23:51:34 +0000
(18:51 -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 d3d1a79d8c6fef2a5dd8b26cedd8ab5727364a46..b204bf67cf2788e744c755d9cf16babb09eaf74a 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);