Commit f92a0b6f authored by Steven Whitehouse's avatar Steven Whitehouse

[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: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 409e185d
...@@ -353,6 +353,7 @@ int gfs2_change_nlink(struct gfs2_inode *ip, int diff) ...@@ -353,6 +353,7 @@ int gfs2_change_nlink(struct gfs2_inode *ip, int diff)
if (error) if (error)
goto out_norgrp; goto out_norgrp;
clear_nlink(&ip->i_inode);
gfs2_unlink_di(&ip->i_inode); /* mark inode unlinked */ gfs2_unlink_di(&ip->i_inode); /* mark inode unlinked */
gfs2_glock_dq_uninit(&rg_gh); gfs2_glock_dq_uninit(&rg_gh);
out_norgrp: out_norgrp:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment