Mark Fasheh 73c8a80003 ocfs2: clean up localalloc mount option size parsing
This patch pulls the local alloc sizing code into localalloc.c and provides
a callout to it from ocfs2_fill_super(). Behavior is essentially unchanged
except that I correctly calculate the maximum local alloc size. The old code
in ocfs2_parse_options() calculated the max size as:

ocfs2_local_alloc_size(sb) * 8

which is correct, in bits. Unfortunately though the option passed in is in
megabytes. Ultimately, this bug made no real difference - the shrink code
would catch a too-large size and bring it down to something reasonable.
Still, it's less than efficient as-is.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
2010-05-05 18:18:06 -07:00
..
2010-05-05 18:17:30 -07:00
2009-10-28 23:05:57 -07:00
2009-09-22 20:09:36 -07:00
2009-07-21 15:47:55 -07:00
2009-04-03 11:39:16 -07:00
2009-09-22 20:09:37 -07:00
2009-10-28 23:05:57 -07:00
2008-10-13 13:57:57 -07:00
2010-05-05 18:17:30 -07:00
2009-09-27 11:39:25 -07:00
2008-02-03 17:33:42 +02:00
2009-09-22 20:09:51 -07:00
2010-05-05 18:17:30 -07:00
2008-01-25 15:05:46 -08:00
2009-10-28 23:05:57 -07:00