]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs/blocklayout: fix last_write_offset incorrectly set to page boundary
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 11 Oct 2016 19:53:21 +0000 (15:53 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Oct 2016 20:42:53 +0000 (16:42 -0400)
commitf81204eb8c63cb5ed6ec44bd934c8d06ee64e63a
tree3b835438b0bee423b97c5129de3d82da296aa25c
parent3c53fcaf0ec0ac13d65858fb0981e424f2580a2b
pnfs/blocklayout: fix last_write_offset incorrectly set to page boundary

Commit 863ed2bd09fb0ba14b3a88943a60cac270b8ab18 sets the block layout's
last written byte to the offset of the end of the extent rather than the
end of the write which incorrectly updates the inode's size for
partial-page writes.

Fixes: 863ed2bd09fb ("pnfs/blocklayout: update last_write_offset atomically with extents")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # 4.8+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/blocklayout/blocklayout.c