diff options
author | Souptick Joarder <jrdr.linux@gmail.com> | 2018-06-06 19:54:44 +0530 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 17:27:45 +0200 |
commit | a528a24150870c5c16cbbbec69dba7e992b08456 (patch) | |
tree | df48cf3afefbda584507d1d633ce3d54c5f975be /fs/btrfs/ctree.h | |
parent | 9d311e11fc1f5581d5ec2df0f87ea5a0193c41ad (diff) | |
download | linux-stable-a528a24150870c5c16cbbbec69dba7e992b08456.tar.gz linux-stable-a528a24150870c5c16cbbbec69dba7e992b08456.tar.bz2 linux-stable-a528a24150870c5c16cbbbec69dba7e992b08456.zip |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index f4bf7874c24a..118346aceea9 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3197,7 +3197,7 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset, size_t size, struct bio *bio, unsigned long bio_flags); void btrfs_set_range_writeback(void *private_data, u64 start, u64 end); -int btrfs_page_mkwrite(struct vm_fault *vmf); +vm_fault_t btrfs_page_mkwrite(struct vm_fault *vmf); int btrfs_readpage(struct file *file, struct page *page); void btrfs_evict_inode(struct inode *inode); int btrfs_write_inode(struct inode *inode, struct writeback_control *wbc); |