diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-08-24 11:47:51 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2010-08-24 11:47:51 +1000 |
commit | b5420f235953448eeae615b3361584dc5e414f34 (patch) | |
tree | 7c28ca9ee8a78d3d2a881a9269cd04ce88480e57 /mm | |
parent | 3b93c7aaefc05ee2a75e2726929b01a321402984 (diff) | |
download | linux-stable-b5420f235953448eeae615b3361584dc5e414f34.tar.gz linux-stable-b5420f235953448eeae615b3361584dc5e414f34.tar.bz2 linux-stable-b5420f235953448eeae615b3361584dc5e414f34.zip |
xfs: do not discard page cache data on EAGAIN
If xfs_map_blocks returns EAGAIN because of lock contention we must redirty the
page and not disard the pagecache content and return an error from writepage.
We used to do this correctly, but the logic got lost during the recent
reshuffle of the writepage code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Mike Gao <ygao.linux@gmail.com>
Tested-by: Mike Gao <ygao.linux@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions