diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-03 16:29:02 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:01 -0400 |
commit | 0ef8b2428a339e83fe225e82ef8bd0ea3f62b180 (patch) | |
tree | 0a41ce935561f7e8be24a36fb493650466f639c2 /fs/btrfs/ctree.c | |
parent | 0999df54f850fe1aba29b10d5c869493af107478 (diff) |
Btrfs: Properly dirty buffers in the split corner cases
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: | |||
2052 | path->nodes[0] = right; | 2052 | path->nodes[0] = right; |
2053 | path->slots[0] = 0; | 2053 | path->slots[0] = 0; |
2054 | path->slots[1] += 1; | 2054 | path->slots[1] += 1; |
2055 | btrfs_mark_buffer_dirty(right); | ||
2055 | return ret; | 2056 | return ret; |
2056 | } | 2057 | } |
2057 | mid = slot; | 2058 | mid = slot; |
@@ -2082,6 +2083,7 @@ again: | |||
2082 | if (wret) | 2083 | if (wret) |
2083 | ret = wret; | 2084 | ret = wret; |
2084 | } | 2085 | } |
2086 | btrfs_mark_buffer_dirty(right); | ||
2085 | return ret; | 2087 | return ret; |
2086 | } else if (extend && slot == 0) { | 2088 | } else if (extend && slot == 0) { |
2087 | mid = 1; | 2089 | mid = 1; |