diff options
| author | Coly Li <[email protected]> | 2021-01-28 10:48:47 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-01-28 14:35:07 +0000 |
| commit | 0df28cad06eb41cc36bfea69d9c882fb567fd0d6 (patch) | |
| tree | cea0ee0b87a484e41376e1705b447600f3808861 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | block: fix bd_size_lock use (diff) | |
| download | kernel-0df28cad06eb41cc36bfea69d9c882fb567fd0d6.tar.gz kernel-0df28cad06eb41cc36bfea69d9c882fb567fd0d6.zip | |
bcache: only check feature sets when sb->version >= BCACHE_SB_VERSION_CDEV_WITH_FEATURES
For super block version < BCACHE_SB_VERSION_CDEV_WITH_FEATURES, it
doesn't make sense to check the feature sets. This patch checks
super block version in bch_has_feature_* routines, if the version
doesn't have feature sets yet, returns 0 (false) to the caller.
Fixes: 5342fd425502 ("bcache: set bcache device into read-only mode for BCH_FEATURE_INCOMPAT_OBSO_LARGE_BUCKET")
Fixes: ffa470327572 ("bcache: add bucket_size_hi into struct cache_sb_disk for large bucket")
Cc: [email protected] # 5.9+
Reported-and-tested-by: Bockholdt Arne <[email protected]>
Signed-off-by: Coly Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
