]> git.baikalelectronics.ru Git - kernel.git/commit
block: check if page is mergeable in one helper
authorMing Lei <ming.lei@redhat.com>
Sun, 17 Mar 2019 10:01:07 +0000 (18:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Apr 2019 18:11:30 +0000 (12:11 -0600)
commitc3c9c351dfe8f16aadd0761a672cbbc089f8fb03
tree7d1bc404915ed59a90eb7fb4e7897e46c0f26022
parent2d84735a1079677bdc6ce98fb210a46c4c7a13b3
block: check if page is mergeable in one helper

Now the check for deciding if one page is mergeable to current bvec
becomes a bit complicated, and we need to reuse the code before
adding pc page.

So move the check in one dedicated helper.

No function change.

Cc: Omar Sandoval <osandov@fb.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c