staging: lustre: lclient: lcommon_misc.c fixing coding style issues
fixed warning: * WARNING: min() should probably be min_t(__u32, desc.ld_tgt_count, LOV_MAX_STRIPE_COUNT) Signed-off-by: Anil Belur <askb23@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
641cff7773
commit
2df2b3a8be
|
@ -63,7 +63,7 @@ int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
stripes = min(desc.ld_tgt_count, (__u32)LOV_MAX_STRIPE_COUNT);
|
stripes = min_t(__u32, desc.ld_tgt_count, LOV_MAX_STRIPE_COUNT);
|
||||||
lsm.lsm_stripe_count = stripes;
|
lsm.lsm_stripe_count = stripes;
|
||||||
easize = obd_size_diskmd(dt_exp, &lsm);
|
easize = obd_size_diskmd(dt_exp, &lsm);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue