Commit 29d9c5e
btrfs: avoid unnecessary path allocation at fixup_inode_link_count()
There's no need to allocate a path as our single caller already has a
path that we can use. So pass the caller's path and use it.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 2ac7094 commit 29d9c5e
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1728 | 1728 | | |
1729 | 1729 | | |
1730 | 1730 | | |
| 1731 | + | |
1731 | 1732 | | |
1732 | 1733 | | |
1733 | 1734 | | |
1734 | 1735 | | |
1735 | | - | |
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
1739 | 1739 | | |
1740 | | - | |
1741 | | - | |
1742 | | - | |
1743 | | - | |
1744 | 1740 | | |
1745 | 1741 | | |
1746 | 1742 | | |
| |||
1776 | 1772 | | |
1777 | 1773 | | |
1778 | 1774 | | |
1779 | | - | |
| 1775 | + | |
1780 | 1776 | | |
1781 | 1777 | | |
1782 | 1778 | | |
| |||
1821 | 1817 | | |
1822 | 1818 | | |
1823 | 1819 | | |
1824 | | - | |
| 1820 | + | |
1825 | 1821 | | |
1826 | 1822 | | |
1827 | 1823 | | |
| |||
0 commit comments