File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ struct dentry *simplefs_mount(struct file_system_type *fs_type,
25
25
/* Unmount a simplefs partition */
26
26
void simplefs_kill_sb (struct super_block * sb )
27
27
{
28
+ struct simplefs_sb_info * sbi = SIMPLEFS_SB (sb );
29
+ #if SIMPLEFS_AT_LEAST (6 , 9 , 0 )
30
+ if (sbi -> s_journal_bdev_file )
31
+ fput (sbi -> s_journal_bdev_file );
32
+ #elif SIMPLEFS_AT_LEAST (6 , 7 , 0 )
33
+ if (sbi -> s_journal_bdev_handle )
34
+ bdev_release (sbi -> s_journal_bdev_handle );
35
+ #endif
28
36
kill_block_super (sb );
29
37
30
38
pr_info ("unmounted disk\n" );
Original file line number Diff line number Diff line change @@ -372,12 +372,9 @@ static journal_t *simplefs_get_dev_journal(struct super_block *sb,
372
372
}
373
373
#if SIMPLEFS_AT_LEAST (6 , 9 , 0 )
374
374
sbi -> s_journal_bdev_file = bdev_file ;
375
- pr_info ("6.11 kernel" );
376
375
#elif SIMPLEFS_AT_LEAST (6 , 7 , 0 )
377
376
sbi -> s_journal_bdev_handle = bdev_handle ;
378
- pr_info ("6.8 kernel" );
379
377
#elif SIMPLEFS_AT_LEAST (5 , 15 , 0 )
380
- pr_info ("5.15 kernel" );
381
378
sbi -> s_journal_bdev = bdev ;
382
379
#endif
383
380
You can’t perform that action at this time.
0 commit comments