summaryrefslogtreecommitdiff
path: root/csum.h
AgeCommit message (Expand)AuthorFilesLines
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+179
='1'>ignoremode:
authorChris Mason <clm@fb.com>2016-07-19 05:52:36 -0700
committerChris Mason <clm@fb.com>2016-07-21 04:03:40 -0700
commit8b8b08cbfb9021af4b54b4175fc4c51d655aac8c (patch)
tree1b53d06941d504cef36b4e85ac874717d78e21c3
parentbac357dcec2956f01df9da5365be257741b534dc (diff)
Btrfs: fix delalloc accounting after copy_from_user faults
Commit 56244ef151c3cd11 was almost but not quite enough to fix the reservation math after btrfs_copy_from_user returned partial copies. Some users are still seeing warnings in btrfs_destroy_inode, and with a long enough test run I'm able to trigger them as well. This patch fixes the accounting math again, bringing it much closer to the way it was before the sectorsize conversion Chandan did. The problem is accounting for the offset into the page/sector when we do a partial copy. This one just uses the dirty_sectors variable which should already be updated properly. Signed-off-by: Chris Mason <clm@fb.com> cc: stable@vger.kernel.org # v4.6+
Diffstat