]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
UBIFS: push empty flash hack down
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 Aug 2008 14:29:43 +0000 (17:29 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 31 Aug 2008 14:15:53 +0000 (17:15 +0300)
commit9e5de3549615818cae9c20a0ee1fd3ad4a747758
tree0ac4320ec95f9b0aa4a8fb4fb09ded2d739950e6
parent8191e1fa8131a422f4bf7b0f2dc1f8543fd17783
UBIFS: push empty flash hack down

We have a hack which forces the amount of flash space to be
equivalent to 'c->blocks_cnt' in case of empty FS. This is
to make users happy and see '%0' used in 'df' when they
mount an empty FS. This hack is not needed in
'ubifs_calc_available()', but it is only needed the caller,
in 'ubifs_budg_get_free_space()'. So push it down there.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/budget.c
fs/ubifs/super.c