GIT: wrapfs-2.6.35.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:10:12 EST 2015


Push to branch refs/heads/master:
460432d6d33de2c09b4c9f6b6bb49d93f4ba0e41 -->
  c94bb12e7c50ff5c08140bc8a98617ef1f45a0ba

 fs/wrapfs/inode.c | 4 ++++
 1 file changed, 4 insertions(+)

commit c94bb12e7c50ff5c08140bc8a98617ef1f45a0ba
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date:   Mon Dec 14 18:51:34 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 d3d1a79..b204bf6 100644
--- 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);



More information about the unionfs-cvs mailing list