summaryrefslogtreecommitdiff
path: root/lib/gen_crc32table.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2010-06-09 16:43:05 +0800
committerJoel Becker <joel.becker@oracle.com>2010-06-15 16:50:43 -0700
commit1739da40543ed2129050ccfa8a076a851ab6ed00 (patch)
tree43c58012649437dba6383411eb50c2031ad42050 /lib/gen_crc32table.c
parent40f165f416bde747d85cdf71bc9dde700912f71f (diff)
ocfs2: Limit default local alloc size within bitmap range.
In commit 6b82021b9e91cd689fdffadbcdb9a42597bbe764, we increase our local alloc size and calculate how much megabytes we can get according to group size and volume size. But we also need to check the maximum bits a local alloc block bitmap can have. With a bs=512, cs=32K, local volume with 160G, it calculate 96MB while the maximum local alloc size is only 76M. So the bitmap will overflow and corrupt the system truncate log file. See bug http://oss.oracle.com/bugzilla/show_bug.cgi?id=1262 Signed-off-by: Tao Ma <tao.ma@oracle.com> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'lib/gen_crc32table.c')
0 files changed, 0 insertions, 0 deletions