We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9007e commit 2a09b57Copy full SHA for 2a09b57
fs/xfs/xfs_inode.c
@@ -564,8 +564,6 @@ xfs_lock_two_inodes(
564
struct xfs_inode *ip1,
565
uint ip1_mode)
566
{
567
- struct xfs_inode *temp;
568
- uint mode_temp;
569
int attempts = 0;
570
struct xfs_log_item *lp;
571
@@ -578,12 +576,8 @@ xfs_lock_two_inodes(
578
576
ASSERT(ip0->i_ino != ip1->i_ino);
579
577
580
if (ip0->i_ino > ip1->i_ino) {
581
- temp = ip0;
582
- ip0 = ip1;
583
- ip1 = temp;
584
- mode_temp = ip0_mode;
585
- ip0_mode = ip1_mode;
586
- ip1_mode = mode_temp;
+ swap(ip0, ip1);
+ swap(ip0_mode, ip1_mode);
587
}
588
589
again:
0 commit comments