Lines Matching defs:chunk
353 ** allocates a new chunk of X nodes, and links them all together as a list.
710 static void write_chunk(struct buffer_chunk *chunk)
714 for (i = 0; i < chunk->nr; i++) {
715 submit_logged_buffer(chunk->bh[i]);
717 chunk->nr = 0;
721 static void write_ordered_chunk(struct buffer_chunk *chunk)
725 for (i = 0; i < chunk->nr; i++) {
726 submit_ordered_buffer(chunk->bh[i]);
728 chunk->nr = 0;
732 static int add_to_chunk(struct buffer_chunk *chunk, struct buffer_head *bh,
736 BUG_ON(chunk->nr >= CHUNK_SIZE);
737 chunk->bh[chunk->nr++] = bh;
738 if (chunk->nr >= CHUNK_SIZE) {
742 fn(chunk);
837 struct buffer_chunk chunk;
841 chunk.nr = 0;
853 if (chunk.nr)
854 write_ordered_chunk(&chunk);
870 add_to_chunk(&chunk, bh, lock, write_ordered_chunk);
879 if (chunk.nr) {
881 write_ordered_chunk(&chunk);
1076 * get a chunk of data on there.
1698 struct buffer_chunk *chunk)
1730 add_to_chunk(chunk, tmp_bh, NULL, write_chunk);
1791 struct buffer_chunk chunk;
1794 chunk.nr = 0;
1813 ret = write_one_transaction(s, jl, &chunk);
1831 if (chunk.nr) {
1832 write_chunk(&chunk);
1845 ** This function tries to clear out a large chunk of the journal lists