]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: xfs_setattr_size no longer races with page faults
authorDave Chinner <dchinner@redhat.com>
Mon, 23 Feb 2015 10:46:58 +0000 (21:46 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 23 Feb 2015 10:46:58 +0000 (21:46 +1100)
commit0f9160b444e4de33b65dfcd3b901358a3129461a
tree60b861d303238aa3ec033992a66804bc4bfaa6db
parente8e9ad42c1f1e1bfbe0e8c32c8cac02e9ebfb7ef
xfs: xfs_setattr_size no longer races with page faults

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>
fs/xfs/xfs_iops.c