gfs2: Minor gfs2_page_add_databufs cleanup
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 6 Nov 2017 18:58:36 +0000 (19:58 +0100)
committerBob Peterson <rpeterso@redhat.com>
Thu, 18 Jan 2018 21:18:55 +0000 (14:18 -0700)
commit88b65ce5fdd9ac75df1534cf6503db0ccb230ecb
treefb88eb5dc785a5e4067cc957c376bc0ffb44f6fb
parent235628c5c76040b0ec206ea9ab9e017771e0d78e
gfs2: Minor gfs2_page_add_databufs cleanup

The to parameter of gfs2_page_add_databufs is passed inconsistently:
once as from + len, once as from + len - 1.  Just pass len instead.

In addition, once we're past the end, we can immediately break out of
the loop.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/aops.c