diff options
author | Artem B. Bityutskiy <dedekind@infradead.org> | 2005-07-24 11:14:17 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-11-06 11:06:49 -0500 |
commit | e0c8e42f8f218063ff6838b25038ccef7ddf257e (patch) | |
tree | a072b5cfd6b9af41dfef13821383af584d989ca6 /fs/jffs2/fs.c | |
parent | 6dac02a5e1bba0bb88ece50160fc4a64cccf30d1 (diff) |
[JFFS2] Debug code clean up - step 3
Various simplifiactions. printk format corrections.
Convert more code to use the new debug functions.
Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/fs.c')
-rw-r--r-- | fs/jffs2/fs.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index a6661e8be25a..34731614b57a 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * | 7 | * |
8 | * For licensing information, see the file 'LICENCE' in this directory. | 8 | * For licensing information, see the file 'LICENCE' in this directory. |
9 | * | 9 | * |
10 | * $Id: fs.c,v 1.59 2005/07/18 11:21:19 dedekind Exp $ | 10 | * $Id: fs.c,v 1.60 2005/07/22 10:32:08 dedekind Exp $ |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
@@ -194,19 +194,15 @@ int jffs2_statfs(struct super_block *sb, struct kstatfs *buf) | |||
194 | buf->f_namelen = JFFS2_MAX_NAME_LEN; | 194 | buf->f_namelen = JFFS2_MAX_NAME_LEN; |
195 | 195 | ||
196 | spin_lock(&c->erase_completion_lock); | 196 | spin_lock(&c->erase_completion_lock); |
197 | |||
198 | avail = c->dirty_size + c->free_size; | 197 | avail = c->dirty_size + c->free_size; |
199 | if (avail > c->sector_size * c->resv_blocks_write) | 198 | if (avail > c->sector_size * c->resv_blocks_write) |
200 | avail -= c->sector_size * c->resv_blocks_write; | 199 | avail -= c->sector_size * c->resv_blocks_write; |
201 | else | 200 | else |
202 | avail = 0; | 201 | avail = 0; |
202 | spin_unlock(&c->erase_completion_lock); | ||
203 | 203 | ||
204 | buf->f_bavail = buf->f_bfree = avail >> PAGE_SHIFT; | 204 | buf->f_bavail = buf->f_bfree = avail >> PAGE_SHIFT; |
205 | 205 | ||
206 | jffs2_dbg_dump_block_lists(c); | ||
207 | |||
208 | spin_unlock(&c->erase_completion_lock); | ||
209 | |||
210 | return 0; | 206 | return 0; |
211 | } | 207 | } |
212 | 208 | ||