btrfs: remove shadowing variables in __btrfs_buffered_write
authorDavid Sterba <dsterba@suse.cz>
Tue, 24 Feb 2015 18:07:26 +0000 (19:07 +0100)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Mar 2015 16:23:58 +0000 (17:23 +0100)
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: David Sterba <dsterba@suse.cz>
fs/btrfs/file.c

index e74abb3018d43433f9369fd4b8d4752e77f11cc4..a3c2bd77c74b638c841986a946319acd5364f0bf 100644 (file)
@@ -1631,8 +1631,8 @@ again:
                        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,