OSDN Git Service

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)
commit5919482e222908d40279a616b1fe6400549e32b4
tree7d1bc404915ed59a90eb7fb4e7897e46c0f26022
parent5a8ce240d4d302d27a58fd34499b2404b3a8df4f
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