Browse Source

[GFS2] Mark nlink cleared so VFS sees it happen

This does nothing atm, but will be required for later support of
r/o bind mounts.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Steven Whitehouse 18 years ago
parent
commit
f92a0b6ff4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      fs/gfs2/inode.c

+ 1 - 0
fs/gfs2/inode.c

@@ -353,6 +353,7 @@ int gfs2_change_nlink(struct gfs2_inode *ip, int diff)
 		if (error)
 			goto out_norgrp;
 
+		clear_nlink(&ip->i_inode);
 		gfs2_unlink_di(&ip->i_inode); /* mark inode unlinked */
 		gfs2_glock_dq_uninit(&rg_gh);
 out_norgrp: