]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e9d692c67bdd5e648f88070cbd31c441c98652e
treedf48cf3afefbda584507d1d633ce3d54c5f975be
parenta7b8742c3cb007c934a97396a9934d4dc8ab5497
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 cbb1cb712168 ("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