Commit 2df2b3a8 authored by Anil Belur's avatar Anil Belur Committed by Greg Kroah-Hartman
Browse files

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: default avatarAnil Belur <askb23@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 641cff77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
	if (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;
	easize = obd_size_diskmd(dt_exp, &lsm);