* [patch] reiser4: fix up cluster nodes accounting
@ 2013-07-16 17:01 Edward Shishkin
0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2013-07-16 17:01 UTC (permalink / raw)
To: ReiserFS Development mailing list
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: reiser4-fix-cluster-nodes-accounting.patch --]
[-- Type: text/x-patch, Size: 802 bytes --]
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 <edward.shishkin@gmail.com>
---
fs/reiser4/plugin/file/cryptcompress.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-3.9.2.orig/fs/reiser4/plugin/file/cryptcompress.c
+++ linux-3.9.2/fs/reiser4/plugin/file/cryptcompress.c
@@ -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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-16 17:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 17:01 [patch] reiser4: fix up cluster nodes accounting Edward Shishkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).