Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f64c7b12 authored by David Sterba's avatar David Sterba
Browse files

btrfs: remove shadowing variables in __btrfs_buffered_write



There are lockstart and lockend defined in the function and not used
after their duplicate definition scope ends, it's safe to reuse them.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
parent 31e818fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1631,8 +1631,8 @@ static noinline ssize_t __btrfs_buffered_write(struct file *file,
			btrfs_end_write_no_snapshoting(root);

		if (only_release_metadata && copied > 0) {
			u64 lockstart = round_down(pos, root->sectorsize);
			u64 lockend = lockstart +
			lockstart = round_down(pos, root->sectorsize);
			lockend = lockstart +
				(dirty_pages << PAGE_CACHE_SHIFT) - 1;

			set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart,