Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155685
b: refs/heads/master
c: 9cb308c
h: refs/heads/master
i:
  155683: b35ccbc
v: v3
  • Loading branch information
Xiaotian Feng authored and Tejun Heo committed Jul 17, 2009
1 parent 4a73961 commit ba2bb1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f47428704c2fd6f787a6f340071b9c338b65803
refs/heads/master: 9cb308ce8d32a1fb3600acab6034e19a90228743
11 changes: 6 additions & 5 deletions trunk/block/blk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ struct queue_sysfs_entry {
};

static ssize_t
queue_var_show(unsigned int var, char *page)
queue_var_show(unsigned long var, char *page)
{
return sprintf(page, "%d\n", var);
return sprintf(page, "%lu\n", var);
}

static ssize_t
Expand Down Expand Up @@ -77,7 +77,8 @@ queue_requests_store(struct request_queue *q, const char *page, size_t count)

static ssize_t queue_ra_show(struct request_queue *q, char *page)
{
int ra_kb = q->backing_dev_info.ra_pages << (PAGE_CACHE_SHIFT - 10);
unsigned long ra_kb = q->backing_dev_info.ra_pages <<
(PAGE_CACHE_SHIFT - 10);

return queue_var_show(ra_kb, (page));
}
Expand Down Expand Up @@ -189,9 +190,9 @@ static ssize_t queue_nomerges_store(struct request_queue *q, const char *page,

static ssize_t queue_rq_affinity_show(struct request_queue *q, char *page)
{
unsigned int set = test_bit(QUEUE_FLAG_SAME_COMP, &q->queue_flags);
bool set = test_bit(QUEUE_FLAG_SAME_COMP, &q->queue_flags);

return queue_var_show(set != 0, page);
return queue_var_show(set, page);
}

static ssize_t
Expand Down

0 comments on commit ba2bb1d

Please sign in to comment.