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

Commit 0ef8b242 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Properly dirty buffers in the split corner cases

parent 0999df54
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2052,6 +2052,7 @@ again:
				path->nodes[0] = right;
				path->slots[0] = 0;
				path->slots[1] += 1;
				btrfs_mark_buffer_dirty(right);
				return ret;
			}
			mid = slot;
@@ -2082,6 +2083,7 @@ again:
					if (wret)
						ret = wret;
				}
				btrfs_mark_buffer_dirty(right);
				return ret;
			} else if (extend && slot == 0) {
				mid = 1;