Commit 10e158c4 authored by Geoffrey Wehrman's avatar Geoffrey Wehrman Committed by Stephen Lord

[XFS] Fix target_linkzero calculation

SGI Modid: 2.5.x-xfs:slinx:135993a
parent 60fe791f
......@@ -467,9 +467,6 @@ xfs_rename(
}
target_ip_dropped = 1;
/* Do this test while we still hold the locks */
target_link_zero = (target_ip)->i_d.di_nlink==0;
if (src_is_directory) {
/*
* Drop the link from the old "." entry.
......@@ -481,6 +478,9 @@ xfs_rename(
}
}
/* Do this test while we still hold the locks */
target_link_zero = (target_ip)->i_d.di_nlink==0;
} /* target_ip != NULL */
/*
......
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