mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-24 22:44:45 +02:00
Use max available journal size with jbd2_journal_init_dev()
Avoid next error: JBD2: journal file too short
This commit is contained in:
parent
7023aebf18
commit
49937e8acf
2
simple.c
2
simple.c
@ -727,7 +727,7 @@ static int simplefs_load_journal(struct super_block *sb, int devnum)
|
||||
hblock = bdev_logical_block_size(bdev);
|
||||
len = SIMPLEFS_MAX_FILESYSTEM_OBJECTS_SUPPORTED;
|
||||
|
||||
journal = jbd2_journal_init_dev(bdev, sb->s_bdev, 1, len, blocksize);
|
||||
journal = jbd2_journal_init_dev(bdev, sb->s_bdev, 1, -1, blocksize);
|
||||
if (!journal) {
|
||||
printk(KERN_ERR "Can't load journal\n");
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user