diff options
author | Shan Hai <shan.hai@windriver.com> | 2015-09-21 06:40:57 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-10-21 19:28:48 +0300 |
commit | bb78915203c0c1b07096e50d12f6e8fe54666f4f (patch) | |
tree | a348d7679ff6a420e6b884c0f5d834657228dedf /fs/btrfs/file.c | |
parent | 9c170b2644610a62b107c12a007e065d4456798d (diff) | |
download | linux-bb78915203c0c1b07096e50d12f6e8fe54666f4f.tar.xz |
btrfs/file.c: remove an unsed varialbe first_index
The commit b37392ea86761 ("Btrfs: cleanup unnecessary parameter
and variant of prepare_pages()") makes it redundant.
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Shan Hai <haishan.bai@hotmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index b823fac91c92..b6695c43859d 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1469,7 +1469,6 @@ static noinline ssize_t __btrfs_buffered_write(struct file *file, u64 release_bytes = 0; u64 lockstart; u64 lockend; - unsigned long first_index; size_t num_written = 0; int nrptrs; int ret = 0; @@ -1485,8 +1484,6 @@ static noinline ssize_t __btrfs_buffered_write(struct file *file, if (!pages) return -ENOMEM; - first_index = pos >> PAGE_CACHE_SHIFT; - while (iov_iter_count(i) > 0) { size_t offset = pos & (PAGE_CACHE_SIZE - 1); size_t write_bytes = min(iov_iter_count(i), |