]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix off by one while setting block groups readonly
authorChris Mason <chris.mason@oracle.com>
Fri, 24 Dec 2010 11:41:52 +0000 (06:41 -0500)
committerChris Mason <chris.mason@oracle.com>
Tue, 4 Jan 2011 21:41:39 +0000 (16:41 -0500)
commit6e9af14610a020d54466be792c8819eebd6216a9
tree09f54177bfb8c93b2320d84317705bec6dcc42a6
parent99e408e3c14634d283ada948ea3d9d8791605736
Btrfs: fix off by one while setting block groups readonly

When we read in block groups, we'll set non-redundant groups
readonly if we find a raid1, DUP or raid10 group.  But the
ro code has an off by one bug in the math around testing to
make sure out accounting doesn't go wrong.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c