Whamcloud - gitweb
LU-9750 nrs: some code cleanup in NRS policies 19/25319/3
authorEmoly Liu <emoly.liu@intel.com>
Wed, 8 Feb 2017 06:21:09 +0000 (14:21 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:29:43 +0000 (03:29 +0000)
commit647d9d34be28e53d72606030461d8516979e8590
tree4b59fcbcf4bd62ddb8fdbe8b1c74bbed2c08cbb3
parent8259b8c1122cf0e297921ca80437d575a7c04b7f
LU-9750 nrs: some code cleanup in NRS policies

This patch does some code cleanup in NRS CRR and ORR polices,
including:
- remove the useless NULL checks
- handle errors properly by multiple labels instead of a single one

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: Iafe86ac94042547e83c69e4b46ff7bf1ca31f073
Reviewed-on: https://review.whamcloud.com/25319
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/nrs_crr.c
lustre/ptlrpc/nrs_orr.c