summaryrefslogtreecommitdiff
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2010-06-09 08:43:05 (GMT)
committerJoel Becker <joel.becker@oracle.com>2010-06-15 23:50:43 (GMT)
commit1739da40543ed2129050ccfa8a076a851ab6ed00 (patch)
tree43c58012649437dba6383411eb50c2031ad42050 /fs/ocfs2/file.c
parent40f165f416bde747d85cdf71bc9dde700912f71f (diff)
downloadlinux-1739da40543ed2129050ccfa8a076a851ab6ed00.tar.xz
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 'fs/ocfs2/file.c')
0 files changed, 0 insertions, 0 deletions