summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/buffer_head_io.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2007-12-18 08:46:10 +0100
committerMark Fasheh <mark.fasheh@oracle.com>2008-01-25 23:48:54 +0100
commite9d578a8f279d5e7d1e903f436aefc76ba330b43 (patch)
treeac5ee47053d00940d25f6dd9d2b23cb18e587cf0 /fs/ocfs2/buffer_head_io.h
parentocfs2: Documentation update (diff)
downloadlinux-e9d578a8f279d5e7d1e903f436aefc76ba330b43.tar.xz
linux-e9d578a8f279d5e7d1e903f436aefc76ba330b43.zip
ocfs2: Initalize bitmap_cpg of ocfs2_super to be the maximum.
This value is initialized from global_bitmap->id2.i_chain.cl_cpg. If there is only 1 group, it will be equal to the total clusters in the volume. So as for online resize, it should change for all the nodes in the cluster. It isn't easy and there is no corresponding lock for it. bitmap_cpg is only used in 2 areas: 1. Check whether the suballoc is too large for us to allocate from the global bitmap, so it is little used. And now the suballoc size is 2048, it rarely meet this situation and the check is almost useless. 2. Calculate which group a cluster belongs to. We use it during truncate to figure out which cluster group an extent belongs too. But we should be OK if we increase it though as the cluster group calculated shouldn't change and we only ever have a small bitmap_cpg on file systems with a single cluster group. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/buffer_head_io.h')
0 files changed, 0 insertions, 0 deletions