Commit faa794dd authored by Dave Hansen's avatar Dave Hansen Committed by Miklos Szeredi
Browse files

fuse: Move prefaulting out of hot write path



Prefaulting the write source buffer incurs an extra userspace access
in the common fast path. Make fuse_fill_write_pages() consistent with
generic_perform_write(): only touch userspace an extra time when
copy_folio_from_iter_atomic() has failed to make progress.

Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 0486b183
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment