diff options
| -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 f89a422ca395..ee4b05de4d48 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) | |||
| 677 | 677 | ||
| 678 | ret = ubifs_garbage_collect_leb(c, &lp); | 678 | ret = ubifs_garbage_collect_leb(c, &lp); |
| 679 | if (ret < 0) { | 679 | if (ret < 0) { |
| 680 | if (ret == -EAGAIN || ret == -ENOSPC) { | 680 | if (ret == -EAGAIN) { |
| 681 | /* | 681 | /* |
| 682 | * These codes are not errors, so we have to | 682 | * This is not error, so we have to return the |
| 683 | * return the LEB to lprops. But if the | 683 | * LEB to lprops. But if 'ubifs_return_leb()' |
| 684 | * 'ubifs_return_leb()' function fails, its | 684 | * fails, its failure code is propagated to the |
| 685 | * failure code is propagated to the caller | 685 | * caller instead of the original '-EAGAIN'. |
| 686 | * instead of the original '-EAGAIN' or | ||
| 687 | * '-ENOSPC'. | ||
| 688 | */ | 686 | */ |
| 689 | err = ubifs_return_leb(c, lp.lnum); | 687 | err = ubifs_return_leb(c, lp.lnum); |
| 690 | if (err) | 688 | if (err) |
