Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198073
b: refs/heads/master
c: 31e0cf8
h: refs/heads/master
i:
  198071: 872f636
v: v3
  • Loading branch information
Sage Weil committed May 17, 2010
1 parent 41fcf5a commit 40c8d40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 56b7cf9581fa0486657102a6fb8efabc3eadeba1
refs/heads/master: 31e0cf8f6a1488b6ca69dcdceeaed107ecfd6463
5 changes: 4 additions & 1 deletion trunk/fs/ceph/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,8 @@ static int ceph_compare_super(struct super_block *sb, void *data)
/*
* construct our own bdi so we can control readahead, etc.
*/
static atomic_long_t bdi_seq = ATOMIC_INIT(0);

static int ceph_register_bdi(struct super_block *sb, struct ceph_client *client)
{
int err;
Expand All @@ -919,7 +921,8 @@ static int ceph_register_bdi(struct super_block *sb, struct ceph_client *client)
client->backing_dev_info.ra_pages =
(client->mount_args->rsize + PAGE_CACHE_SIZE - 1)
>> PAGE_SHIFT;
err = bdi_register_dev(&client->backing_dev_info, sb->s_dev);
err = bdi_register(&client->backing_dev_info, NULL, "ceph-%d",
atomic_long_inc_return(&bdi_seq));
if (!err)
sb->s_bdi = &client->backing_dev_info;
return err;
Expand Down

0 comments on commit 40c8d40

Please sign in to comment.