Skip to content

Commit f46dadb

Browse files
committed
Refine Linux 6.6 support
1 parent 1a6640b commit f46dadb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inode.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static struct inode *simplefs_new_inode(struct inode *dir, mode_t mode)
180180
uint32_t ino, bno;
181181
int ret;
182182

183-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
183+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
184184
struct timespec64 cur_time;
185185
#endif
186186

@@ -312,7 +312,7 @@ static int simplefs_create(struct inode *dir,
312312
char *fblock;
313313
struct buffer_head *bh, *bh2;
314314

315-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
315+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
316316
struct timespec64 cur_time;
317317
#endif
318318

@@ -520,7 +520,7 @@ static int simplefs_unlink(struct inode *dir, struct dentry *dentry)
520520
struct inode *inode = d_inode(dentry);
521521
struct buffer_head *bh = NULL, *bh2 = NULL;
522522
struct simplefs_file_ei_block *file_block = NULL;
523-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
523+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
524524
struct timespec64 cur_time;
525525
#endif
526526
int ei = 0, bi = 0;
@@ -652,7 +652,7 @@ static int simplefs_rename(struct inode *old_dir,
652652
struct simplefs_file_ei_block *eblock_new = NULL;
653653
struct simplefs_dir_block *dblock = NULL;
654654

655-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
655+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
656656
struct timespec64 cur_time;
657657
#endif
658658

0 commit comments

Comments
 (0)