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

Commit bb789152 authored by Shan Hai's avatar Shan Hai Committed by David Sterba
Browse files

btrfs/file.c: remove an unsed varialbe first_index



The commit b37392ea ("Btrfs: cleanup unnecessary parameter
and variant of prepare_pages()") makes it redundant.

Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarShan Hai <haishan.bai@hotmail.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 9c170b26
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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),