Skip to content

Commit 262d8a8

Browse files
josephhztorvalds
authored andcommitted
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: Joseph Qi <joseph.qi@huawei.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 5afc44e commit 262d8a8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fs/ocfs2/refcounttree.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2920,16 +2920,13 @@ int ocfs2_duplicate_clusters_by_page(handle_t *handle,
29202920
u64 new_block = ocfs2_clusters_to_blocks(sb, new_cluster);
29212921
struct page *page;
29222922
pgoff_t page_index;
2923-
unsigned int from, to, readahead_pages;
2923+
unsigned int from, to;
29242924
loff_t offset, end, map_end;
29252925
struct address_space *mapping = inode->i_mapping;
29262926

29272927
trace_ocfs2_duplicate_clusters_by_page(cpos, old_cluster,
29282928
new_cluster, new_len);
29292929

2930-
readahead_pages =
2931-
(ocfs2_cow_contig_clusters(sb) <<
2932-
OCFS2_SB(sb)->s_clustersize_bits) >> PAGE_CACHE_SHIFT;
29332930
offset = ((loff_t)cpos) << OCFS2_SB(sb)->s_clustersize_bits;
29342931
end = offset + (new_len << OCFS2_SB(sb)->s_clustersize_bits);
29352932
/*

0 commit comments

Comments
 (0)