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

Commit 518d7269 authored by Tao Mao's avatar Tao Mao Committed by Mark Fasheh
Browse files

ocfs2: remove unused variable



delete_tail_recs in ocfs2_try_to_merge_extent() was only ever set, remove
it.

Signed-off-by: default avatarTao Mao <tao.ma@oracle.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent c77534f6
Loading
Loading
Loading
Loading
+16 −24
Original line number Diff line number Diff line
@@ -2807,20 +2807,13 @@ static int ocfs2_try_to_merge_extent(struct inode *inode,
				     struct ocfs2_merge_ctxt *ctxt)

{
	int ret = 0, delete_tail_recs = 0;
	int ret = 0;
	struct ocfs2_extent_list *el = path_leaf_el(left_path);
	struct ocfs2_extent_rec *rec = &el->l_recs[split_index];

	BUG_ON(ctxt->c_contig_type == CONTIG_NONE);

	if (ctxt->c_split_covers_rec) {
		delete_tail_recs++;

		if (ctxt->c_contig_type == CONTIG_LEFTRIGHT ||
		    ctxt->c_has_empty_extent)
			delete_tail_recs++;

		if (ctxt->c_has_empty_extent) {
	if (ctxt->c_split_covers_rec && ctxt->c_has_empty_extent) {
		/*
		 * The merge code will need to create an empty
		 * extent to take the place of the newly
@@ -2837,7 +2830,6 @@ static int ocfs2_try_to_merge_extent(struct inode *inode,
		split_index--;
		rec = &el->l_recs[split_index];
	}
	}

	if (ctxt->c_contig_type == CONTIG_LEFTRIGHT) {
		/*