summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/master.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-20 16:16:34 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-21 15:48:52 +0200
commit04da11bfcf511544ae19e0a7e5f994b3237752ac (patch)
tree8023d9cd338b2f0c7521df65df41880952310973 /fs/ubifs/master.c
parentLinux v2.6.27-rc4 (diff)
downloadlinux-04da11bfcf511544ae19e0a7e5f994b3237752ac.tar.xz
linux-04da11bfcf511544ae19e0a7e5f994b3237752ac.zip
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/master.c')
0 files changed, 0 insertions, 0 deletions