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

Commit ff91cc9b authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

[GFS2] Fix log block mapper



A missing offset in the calculation.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent fa3742fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ static u64 log_bmap(struct gfs2_sbd *sdp, unsigned int lbn)

	list_for_each_entry(je, &sdp->sd_jdesc->extent_list, extent_list) {
		if (lbn >= je->lblock && lbn < je->lblock + je->blocks)
			return je->dblock + lbn;
			return je->dblock + lbn - je->lblock;
	}

	return -1;