commit | 5919482e222908d40279a616b1fe6400549e32b4 | [log] [tgz] |
---|---|---|
author | Ming Lei <ming.lei@redhat.com> | Sun Mar 17 18:01:07 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Apr 01 12:11:30 2019 -0600 |
tree | 7d1bc404915ed59a90eb7fb4e7897e46c0f26022 | |
parent | 5a8ce240d4d302d27a58fd34499b2404b3a8df4f [diff] |
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>