xfs: simplify the b_page_count calculation
Ever since we stopped using the Linux page cache to back XFS buffers there is no need to take the start sector into account for calculating the number of pages in a buffer, as the data always start from the beginning of the buffer. Signed-off-by: NChristoph Hellwig <hch@lst.de> [dgc: modified to suit this series] Signed-off-by: NDave Chinner <dchinner@redhat.com> Reviewed-by: NDarrick J. Wong <djwong@kernel.org>
Showing
想要评论请 注册 或 登录