| 1 |
Author: Andreas Beckmann <[email protected]> |
| 2 |
Description: fix module build for Linux 4.18.13..4.19~ |
| 3 |
discard_new_inode() was introduced in Linux v4.19-rc1 |
| 4 |
(c2b6d621c4ffe9936adf7a55c8b1c769672c306f) and backported to |
| 5 |
Linux 4.18.13 (d08d1bb535f40510709935f6ccc662c7e2c95c79) |
| 6 |
|
| 7 |
--- a/dir.c |
| 8 |
+++ b/dir.c |
| 9 |
@@ -628,7 +628,7 @@ static void apfs_undo_create_dentry(stru |
| 10 |
--APFS_I(parent)->i_nchildren; |
| 11 |
} |
| 12 |
|
| 13 |
|
| 14 |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 13) |
| 15 |
|
| 16 |
static inline void discard_new_inode(struct inode *inode) |
| 17 |
{ |