From: Chris Mason Date: Thu, 3 Apr 2008 20:29:02 +0000 (-0400) Subject: Btrfs: Properly dirty buffers in the split corner cases X-Git-Tag: firefly_0821_release~15789^2~11^2~55^2~56^2~30^2~252 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ef8b2428a339e83fe225e82ef8bd0ea3f62b180;p=firefly-linux-kernel-4.4.55.git Btrfs: Properly dirty buffers in the split corner cases Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index df090bf2eec0..3c7891cf0d72 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -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;