diff options
author | David Sterba <dsterba@suse.cz> | 2015-02-24 13:07:26 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-03-03 11:23:58 -0500 |
commit | f64c7b12f86c638f13e19de08eeb8cf888dff8f6 (patch) | |
tree | 1a72ae3255f7dbe4cdfc1798e49cf6c27deb3ee2 /fs/btrfs/file.c | |
parent | 31e818fe7375d60de9953051f7bd1615cebc3681 (diff) |
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: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index e74abb3018d4..a3c2bd77c74b 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1631,8 +1631,8 @@ again: | |||
1631 | btrfs_end_write_no_snapshoting(root); | 1631 | btrfs_end_write_no_snapshoting(root); |
1632 | 1632 | ||
1633 | if (only_release_metadata && copied > 0) { | 1633 | if (only_release_metadata && copied > 0) { |
1634 | u64 lockstart = round_down(pos, root->sectorsize); | 1634 | lockstart = round_down(pos, root->sectorsize); |
1635 | u64 lockend = lockstart + | 1635 | lockend = lockstart + |
1636 | (dirty_pages << PAGE_CACHE_SHIFT) - 1; | 1636 | (dirty_pages << PAGE_CACHE_SHIFT) - 1; |
1637 | 1637 | ||
1638 | set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, | 1638 | set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, |