xfs: Move handling of missing page into one place in xfs_find_get_desired_pgoff()
authorJan Kara <jack@suse.cz>
Thu, 18 May 2017 23:36:24 +0000 (16:36 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 25 May 2017 16:42:25 +0000 (09:42 -0700)
commita54fba8f5a0dc36161cacdf2aa90f007f702ec1a
tree1a49d87ea7aa86cf684e603410ca5e359d72dc7f
parentd7fd24257aa60316bf81093f7f909dc9475ae974
xfs: Move handling of missing page into one place in xfs_find_get_desired_pgoff()

Currently several places in xfs_find_get_desired_pgoff() handle the case
of a missing page. Make them all handled in one place after the loop has
terminated.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_file.c