Commit 2b7035fd authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Lachlan McIlroy

[XFS] Trivial xfs_remove comment fixup

The dp to ip comment should be for the unconditional xfs_droplink call,
and the "." link obviously only exists for directories, so it should be in
the is_dir conditional.

SGI-PV: 987246

SGI-Modid: xfs-linux-melb:xfs-kern:32374a
Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarDonald Douwsma <donaldd@sgi.com>
Signed-off-by: default avatarDavid Chinner <david@fromorbit.com>
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
parent 1ec7944b
......@@ -2009,7 +2009,7 @@ xfs_remove(
goto out_bmap_cancel;
/*
* Drop the link from dp to ip.
* Drop the "." link from ip to self.
*/
error = xfs_droplink(tp, ip);
if (error)
......@@ -2024,7 +2024,7 @@ xfs_remove(
}
/*
* Drop the "." link from ip to self.
* Drop the link from dp to ip.
*/
error = xfs_droplink(tp, ip);
if (error)
......
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