Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Ignore unknown mount options

This makes mount option handling consistent with other filesystems -
options may be handled at different layers, so an option we don't know
about might not be intended for us.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+2 -1
+2 -1
fs/bcachefs/opts.c
··· 471 471 val = "0"; 472 472 } 473 473 474 + /* Unknown options are ignored: */ 474 475 if (id < 0) 475 - goto bad_opt; 476 + continue; 476 477 477 478 if (!(bch2_opt_table[id].flags & OPT_MOUNT)) 478 479 goto bad_opt;