GIT: wrapfs-3.11.y -- Wrapfs: update nlinks after rename (push to branch refs/heads/master)
ezk at fsl.cs.sunysb.edu
ezk at fsl.cs.sunysb.edu
Mon Dec 14 20:37:15 EST 2015
Push to branch refs/heads/master:
c9c306ac9d251933131bd7131ca670122c2f86a0 -->
f77d2e92a9722eaf21c3f9d44528ad25b5d1ad8f
fs/wrapfs/inode.c | 4 ++++
1 file changed, 4 insertions(+)
commit f77d2e92a9722eaf21c3f9d44528ad25b5d1ad8f
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Sun Dec 13 19:27:59 2015 -0500
Wrapfs: update nlinks after rename
Signed-off-by: Logeswari P Viswanath <logeswari.pv at hpe.com>
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/wrapfs/inode.c b/fs/wrapfs/inode.c
index 8821a8e..d277315 100644
--- 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);
More information about the unionfs-cvs
mailing list