]> 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)
commit81386da393b531948d5df9bb55ae22ecf4bc90af
treedf48cf3afefbda584507d1d633ce3d54c5f975be
parent7486f85bbb55dc34667268184352cec92633c07a
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 668ff7502a9d ("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