diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-07-18 22:52:29 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-07-19 08:53:08 +0200 |
commit | cd9d1ac71536a2f73b241ccadb8d68c1370025ca (patch) | |
tree | be411ecd79077e1c779c2206038b4df08c1f7b6f /platform-intel.h | |
parent | imsm: getinfo_super_imsm_volume() doesn't fill all disk information (diff) | |
download | mdadm-cd9d1ac71536a2f73b241ccadb8d68c1370025ca.tar.xz mdadm-cd9d1ac71536a2f73b241ccadb8d68c1370025ca.zip |
imsm: fix default chunk in the !orom case
Set a valid default in the !orom case, otherwise we segfault, or
otherwise fail.
Cc: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'platform-intel.h')
-rw-r--r-- | platform-intel.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/platform-intel.h b/platform-intel.h index e24ae379..6c094d72 100644 --- a/platform-intel.h +++ b/platform-intel.h @@ -167,21 +167,6 @@ static inline int fls(int x) return r; } -/** - * imsm_orom_default_chunk - return the largest chunk size supported via orom - * @orom: orom pointer from find_imsm_orom - */ -static inline int imsm_orom_default_chunk(const struct imsm_orom *orom) -{ - int fs = fls(orom->sss); - - if (!fs) - return 0; - - return min(512, (1 << fs)); -} - - enum sys_dev_type { SYS_DEV_UNKNOWN = 0, SYS_DEV_SAS, @@ -189,7 +174,6 @@ enum sys_dev_type { SYS_DEV_MAX }; - struct sys_dev { enum sys_dev_type type; char *path; |