fs: sdfat: bio->bi_error got renamed to bio->bi_status on >= 4.13

(Partial)
This commit is contained in:
GrayJack 2018-03-28 18:27:17 -03:00 committed by Andreas Schneider
parent bac33b62ec
commit fd1891ed9e
1 changed files with 6 additions and 2 deletions

View File

@ -216,7 +216,12 @@ static inline void inode_unlock(struct inode *inode)
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0)
static void sdfat_writepage_end_io(struct bio *bio)
{
__sdfat_writepage_end_io(bio, bio->bi_status);
}
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
static void sdfat_writepage_end_io(struct bio *bio)
{
__sdfat_writepage_end_io(bio, bio->bi_error);
@ -5124,4 +5129,3 @@ module_exit(exit_sdfat_fs);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("FAT/exFAT filesystem support");
MODULE_AUTHOR("Samsung Electronics Co., Ltd.");