From: Artem Bityutskiy Date: Wed, 20 Aug 2008 14:16:34 +0000 (+0300) Subject: UBIFS: fix zero-length truncations X-Git-Tag: v2.6.27-rc6~7^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04da11bfcf511544ae19e0a7e5f994b3237752ac;p=pandora-kernel.git UBIFS: fix zero-length truncations Always allow truncations to zero, even if budgeting thinks there is no space. UBIFS reserves some space for deletions anyway. Otherwise, the following happans: 1. create a file, and write as much as possible there, until ENOSPC 2. truncate the file, which fails with ENOSPC, which is not good. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed