From 40c8d40d2d1a55dc506f7f297037b25ad7ae0ce5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 4 May 2010 16:39:35 -0700 Subject: [PATCH] --- yaml --- r: 198073 b: refs/heads/master c: 31e0cf8f6a1488b6ca69dcdceeaed107ecfd6463 h: refs/heads/master i: 198071: 872f6365711a1a64ecf7d842c269dc24d14a7aaf v: v3 --- [refs] | 2 +- trunk/fs/ceph/super.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6568f499bb40..cbcdcdce528e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 56b7cf9581fa0486657102a6fb8efabc3eadeba1 +refs/heads/master: 31e0cf8f6a1488b6ca69dcdceeaed107ecfd6463 diff --git a/trunk/fs/ceph/super.c b/trunk/fs/ceph/super.c index 34b16cb302fe..7f5b20dc4945 100644 --- a/trunk/fs/ceph/super.c +++ b/trunk/fs/ceph/super.c @@ -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; @@ -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;