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

Commit 262d8a87 authored by Joseph Qi's avatar Joseph Qi Committed by Linus Torvalds
Browse files

ocfs2: clean up unused variable in ocfs2_duplicate_clusters_by_page()



readahead_pages in ocfs2_duplicate_clusters_by_page is defined but not
used, so clean it up.

Signed-off-by: default avatarJoseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5afc44e2
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -2920,16 +2920,13 @@ int ocfs2_duplicate_clusters_by_page(handle_t *handle,
	u64 new_block = ocfs2_clusters_to_blocks(sb, new_cluster);
	u64 new_block = ocfs2_clusters_to_blocks(sb, new_cluster);
	struct page *page;
	struct page *page;
	pgoff_t page_index;
	pgoff_t page_index;
	unsigned int from, to, readahead_pages;
	unsigned int from, to;
	loff_t offset, end, map_end;
	loff_t offset, end, map_end;
	struct address_space *mapping = inode->i_mapping;
	struct address_space *mapping = inode->i_mapping;


	trace_ocfs2_duplicate_clusters_by_page(cpos, old_cluster,
	trace_ocfs2_duplicate_clusters_by_page(cpos, old_cluster,
					       new_cluster, new_len);
					       new_cluster, new_len);


	readahead_pages =
		(ocfs2_cow_contig_clusters(sb) <<
		 OCFS2_SB(sb)->s_clustersize_bits) >> PAGE_CACHE_SHIFT;
	offset = ((loff_t)cpos) << OCFS2_SB(sb)->s_clustersize_bits;
	offset = ((loff_t)cpos) << OCFS2_SB(sb)->s_clustersize_bits;
	end = offset + (new_len << OCFS2_SB(sb)->s_clustersize_bits);
	end = offset + (new_len << OCFS2_SB(sb)->s_clustersize_bits);
	/*
	/*