btrfs: change return type of btrfs_page_mkwrite to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Wed, 6 Jun 2018 14:24:44 +0000 (19:54 +0530)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jun 2018 15:27:45 +0000 (17:27 +0200)
commita528a24150870c5c16cbbbec69dba7e992b08456
treedf48cf3afefbda584507d1d633ce3d54c5f975be
parent9d311e11fc1f5581d5ec2df0f87ea5a0193c41ad
btrfs: change return type of btrfs_page_mkwrite to vm_fault_t

Use the new return type vm_fault_t for fault handler. For now, this is
just documenting that the function returns a VM_FAULT value rather than
an errno. Once all instances are converted, vm_fault_t will become a
distinct type.

Reference commit 1c8f422059ae ("mm: change return type to vm_fault_t")

vmf_error() is the newly introduced inline function in 4.17-rc6.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c