Whamcloud - gitweb
LU-7259 osd-ldiskfs: fix signed one bit field 98/19198/2
authorDmitry Eremin <dmitry.eremin@intel.com>
Tue, 29 Mar 2016 18:04:44 +0000 (21:04 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:53:01 +0000 (03:53 +0000)
Bit field 'ot_remove_agents' has one bit and is signed.

Change-Id: Ia844a41552f8ca496ca39774296ecfa32b5966b3
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/19198
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Frank Zago <fzago@cray.com>
lustre/osd-ldiskfs/osd_internal.h

index e3a8d59..654884d 100644 (file)
@@ -357,7 +357,7 @@ struct osd_thandle {
         unsigned short          ot_credits;
         unsigned short          ot_id_cnt;
         unsigned short          ot_id_type;
-       int                     ot_remove_agents:1;
+       unsigned int            ot_remove_agents:1;
         uid_t                   ot_id_array[OSD_MAX_UGID_CNT];
        struct lquota_trans    *ot_quota_trans;
 #if OSD_THANDLE_STATS