Whamcloud - gitweb
LU-216 ldiskfs: use proper arguments for ldiskfs_free_blocks 20/1720/4
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 20 Feb 2014 22:00:08 +0000 (14:00 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 27 May 2014 18:37:59 +0000 (18:37 +0000)
commita66e12d6ede2afda3bb7a5b1f22b8c17c1176584
tree566fa8a0baae9e6656755df94e9e62ae4434e6ab
parent2d7b2950520918caa0df3ab203c4c5e5c4e3bb50
LU-216 ldiskfs: use proper arguments for ldiskfs_free_blocks

In ldiskfs_ext_new_extent_cb(), the extent length argument
is confusingly converted from le16 using cpu_to_le16() instead
of le16_to_cpu().  While this is functionally correct, it is
semantically incorrect and can confuse static code analysis.

Signed-off-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I8b3a684677c66d96fe4828fa771fc309c21755b8
Reviewed-on: http://review.whamcloud.com/1720
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
config/lustre-build-ldiskfs.m4
lustre/osd-ldiskfs/osd_io.c