reiser4: fix up cluster nodes accounting
PATCH 1/1 reiser4: fix up cluster nodes accounting
Problem:
Rare-occured oops when using transparent compression:
kernel BUG at fs/reiser4/block_alloc.c:151
The bug:
Incorrect accounting of nodes, occupied by cluster (ctail items group):
node, which contains the first item in the cluster wasn't take into account.
Fixup:
Increnent the counter of nodes, when the first item is found.
Signed-off-by Edward Shishkin <[email protected]>
--- fs/reiser4/plugin/file/cryptcompress.c | 2 ++ 1 file changed, 2 insertions(+)
fs/reiser4/plugin/file/cryptcompress.c +2 -0
@@ -816,6 +816,8 @@ static int find_cluster_item(hint_t * hi/* * item has been found in the current node */ +dclust_inc_extension_ncount (hint); +return CBK_COORD_FOUND ; } not_found: