[patch] reiser4: fix up cluster nodes accounting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxx>
---
 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:

[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux