summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2015-02-23 21:46:58 +1100
committerBen Hutchings <ben@decadent.org.uk>2016-06-15 21:29:33 +0100
commit9949c4cad4dd3fbb36e68d84116f58c007571c04 (patch)
treed957621098359258eda1f4f729b5585c713b4979 /include/linux
parent1c2ed3952e66315720f5753fe57465d9426ef332 (diff)
xfs: xfs_setattr_size no longer races with page faults
commit 0f9160b444e4de33b65dfcd3b901358a3129461a upstream. Now that truncate locks out new page faults, we no longer need to do special writeback hacks in truncate to work around potential races between page faults, page cache truncation and file size updates to ensure we get write page faults for extending truncates on sub-page block size filesystems. Hence we can remove the code in xfs_setattr_size() that handles this and update the comments around the code tha thandles page cache truncate and size updates to reflect the new reality. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com> [bwh: Backported to 3.16: we never had the previous hack, so just update the comment] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions