diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-04 11:06:06 (GMT) |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-30 07:19:06 (GMT) |
commit | efe1881f5482f94f5e5e6cb74bf3ea72f2b5b9ce (patch) | |
tree | 3009b20fd4e0530e75cd9d5c4a3933133ec0cfce /fs/ubifs | |
parent | 5ffef88ffeb730e1bf2da56a39a55e03d57a66c9 (diff) | |
download | linux-fsl-qoriq-efe1881f5482f94f5e5e6cb74bf3ea72f2b5b9ce.tar.xz |
UBIFS: do not treat ENOSPC specially
'ubifs_garbage_collect_leb()' should never return '-ENOSPC', and if it
does, this is an error. Thus, do not treat this error code specially.
'-EAGAIN' is a special error code, but not '-ENOSPC'.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/gc.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c index f89a422..ee4b05d 100644 --- a/fs/ubifs/gc.c +++ b/fs/ubifs/gc.c @@ -677,14 +677,12 @@ int ubifs_garbage_collect(struct ubifs_info *c, int anyway) ret = ubifs_garbage_collect_leb(c, &lp); if (ret < 0) { - if (ret == -EAGAIN || ret == -ENOSPC) { + if (ret == -EAGAIN) { /* - * These codes are not errors, so we have to - * return the LEB to lprops. But if the - * 'ubifs_return_leb()' function fails, its - * failure code is propagated to the caller - * instead of the original '-EAGAIN' or - * '-ENOSPC'. + * This is not error, so we have to return the + * LEB to lprops. But if 'ubifs_return_leb()' + * fails, its failure code is propagated to the + * caller instead of the original '-EAGAIN'. */ err = ubifs_return_leb(c, lp.lnum); if (err) |