]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ocfs2: Clear undo bits when local alloc is freed
authorMark Fasheh <mfasheh@suse.com>
Fri, 12 Mar 2010 02:31:09 +0000 (18:31 -0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 24 Mar 2010 01:22:40 +0000 (18:22 -0700)
commitb4414eea0e7b9c134262c801a87e338bf675962c
tree09829d99527f1da69cc19074a2d3baef1195955e
parentb23179681c90a55e2a2083e1dde9f727ecffb2b7
ocfs2: Clear undo bits when local alloc is freed

When the local alloc file changes windows, unused bits are freed back to the
global bitmap. By defnition, those bits can not be in use by any file. Also,
the local alloc will never have been able to allocate those bits if they
were part of a previous truncate. Therefore it makes sense that we should
clear unused local alloc bits in the undo buffer so that they can be used
immediatly.

[ Modified to call it ocfs2_release_clusters() -- Joel ]

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/localalloc.c
fs/ocfs2/ocfs2.h
fs/ocfs2/suballoc.c
fs/ocfs2/suballoc.h