aboutsummaryrefslogtreecommitdiff
path: root/fs/ocfs2/cluster/tcp.c
diff options
context:
space:
mode:
authorYounger Liu <[email protected]>2013-09-11 14:19:47 -0700
committerLinus Torvalds <[email protected]>2013-09-11 15:56:31 -0700
commit7e9b79370733945b25c24e09d663b07c3936d10c (patch)
treec9496c12fdaf0e7313c873397f17a9bc9bea4dbb /fs/ocfs2/cluster/tcp.c
parent98ac9125c5afed8c5d2e4c5824988f8ad51814e1 (diff)
ocfs2: ac_bits_wanted should be local_alloc_bits when returns -ENOSPC
There is an issue in reserving and claiming space for localalloc, When localalloc space is not enough, it would claim space from global_bitmap. And if there is not enough free space in global_bitmap, the size of claiming space would set to half of orignal size and retry. The issue is as follows: osb->local_alloc_bits is set to half of orignal size in ocfs2_recalc_la_window(), but ac->ac_bits_wanted is set to osb->local_alloc_default_bits which is not changed. localalloc always reserves and claims local_alloc_default_bits space and returns ENOSPC. So, ac->ac_bits_wanted should be osb->local_alloc_bits which would be changed. Signed-off-by: Younger Liu <[email protected]> Cc: Joel Becker <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Jeff Liu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/ocfs2/cluster/tcp.c')
0 files changed, 0 insertions, 0 deletions