diff options
Diffstat (limited to 'fs/jffs2/nodelist.c')
-rw-r--r-- | fs/jffs2/nodelist.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/jffs2/nodelist.c b/fs/jffs2/nodelist.c index 1fc8aedb56fb..00506857eabc 100644 --- a/fs/jffs2/nodelist.c +++ b/fs/jffs2/nodelist.c | |||
@@ -1080,3 +1080,14 @@ void jffs2_link_node_ref(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, | |||
1080 | ref->__totlen = len; | 1080 | ref->__totlen = len; |
1081 | ref->next_phys = NULL; | 1081 | ref->next_phys = NULL; |
1082 | } | 1082 | } |
1083 | |||
1084 | int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, | ||
1085 | uint32_t size) | ||
1086 | { | ||
1087 | c->dirty_size += size; | ||
1088 | c->free_size -= size; | ||
1089 | jeb->dirty_size += size; | ||
1090 | jeb->free_size -= size; | ||
1091 | |||
1092 | return 0; | ||
1093 | } | ||