Commit 62701f4
btrfs: remove pointless key offset setup in create_pending_snapshot()
There's no point in setting the key's offset to (u64)-1 since we never
use it before setting it to the current transaction's ID. So remove the
assignment of (u64)-1 to the key's offset and move the remainder of the
key initialization close to where it's used.
Reviewed-by: Qu Wenruo <wqu@suse.com>
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 db524fd commit 62701f4
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
1701 | 1697 | | |
1702 | 1698 | | |
1703 | 1699 | | |
| |||
1810 | 1806 | | |
1811 | 1807 | | |
1812 | 1808 | | |
| 1809 | + | |
| 1810 | + | |
1813 | 1811 | | |
1814 | 1812 | | |
1815 | 1813 | | |
| |||
0 commit comments