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