b=12234
i=adilger
i=johann
correct the cast of 'index' in obd_device_list_seq_show()
Description: evictions taking too long
Details : allow llrd to evict clients directly on OSTs
Description: evictions taking too long
Details : allow llrd to evict clients directly on OSTs
+Severity : normal
+Frequency : only on ppc
+Bugzilla : 12234
+Description: /proc/fs/lustre/devices broken on ppc
+Details : The patch as applied to 1.6.2 doesn't look correct for all arches.
+ We should make sure the type of 'index' is loff_t and then cast
+ explicitly as needed below. Do not assign an explicitly cast
+ loff_t to an int.
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
static int obd_device_list_seq_show(struct seq_file *p, void *v)
{
static int obd_device_list_seq_show(struct seq_file *p, void *v)
{
- int index = *(loff_t *)v;
- struct obd_device *obd = class_num2obd(index);
+ loff_t index = *(loff_t *)v;
+ struct obd_device *obd = class_num2obd((int)index);
char *status;
if (obd == NULL)
char *status;
if (obd == NULL)