X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fjffs2%2Fgc.c;h=2d99e06ab223407a400cb31f3eeefae5f0d5bf7e;hb=970e2dfa672b5b26967b0983e24b8d92f972c907;hp=3a3cf225981f5a28daa3d2dc5fbce4e26ccf9c9d;hpb=b7e72ba03be900a7b2e7b3b02e1bb646dff03c46;p=linux-2.6-omap-h63xx.git diff --git a/fs/jffs2/gc.c b/fs/jffs2/gc.c index 3a3cf225981..2d99e06ab22 100644 --- a/fs/jffs2/gc.c +++ b/fs/jffs2/gc.c @@ -1,14 +1,12 @@ /* * JFFS2 -- Journalling Flash File System, Version 2. * - * Copyright (C) 2001-2003 Red Hat, Inc. + * Copyright © 2001-2007 Red Hat, Inc. * * Created by David Woodhouse * * For licensing information, see the file 'LICENCE' in this directory. * - * $Id: gc.c,v 1.155 2005/11/07 11:14:39 gleixner Exp $ - * */ #include @@ -144,7 +142,8 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c) c->unchecked_size); jffs2_dbg_dump_block_lists_nolock(c); spin_unlock(&c->erase_completion_lock); - BUG(); + up(&c->alloc_sem); + return -ENOSPC; } spin_unlock(&c->erase_completion_lock);