OSDN Git Service

xfs: do not set the page uptodate in xfs_writepage_map
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Jul 2018 05:25:58 +0000 (22:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:25:58 +0000 (22:25 -0700)
commit91cdfd1761659f338e673aca72af3d0d50b88847
tree9cfb3341ddbdbe33739349a2a1ed9e6c34ba9889
parentd43801775766972535a0f4b78af65d0c13055e36
xfs: do not set the page uptodate in xfs_writepage_map

We already track the page uptodate status based on the buffer uptodate
status, which is updated whenever reading or zeroing blocks.

This code has been there since commit a ptool commit in 2002, which
claims to:

    "merge" the 2.4 fsx fix for block size < page size to 2.5.  This needed
    major changes to actually fit.

and isn't present in other writepage implementations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
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_aops.c