Whamcloud - gitweb
LU-9750 nrs: some code cleanup in NRS policies 31/28231/2
authorEmoly Liu <emoly.liu@intel.com>
Wed, 8 Feb 2017 06:21:09 +0000 (14:21 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 7 Aug 2017 18:50:03 +0000 (18:50 +0000)
commitebb8e8629cbd951e841b2def2a29296af7738517
tree65066409c40602b73fe5aee0afcec5297b14967a
parent9903e1efd9bb1ddf0d74513c5036169d4a651bfe
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

Lustre-change: https://review.whamcloud.com/25319
Lustre-commit: 647d9d34be28e53d72606030461d8516979e8590

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