Btrfs: Properly dirty buffers in the split corner cases
authorChris Mason <chris.mason@oracle.com>
Thu, 3 Apr 2008 20:29:02 +0000 (16:29 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:01 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c

index df090bf..3c7891c 100644 (file)
@@ -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;