factor out might_queue_current_buffer()

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Add comment on why we set the seg->length to 1 after forcibly flushing
the buffer

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>