aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ceph/super.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index 34b16cb302fe..7f5b20dc4945 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -910,6 +910,8 @@ static int ceph_compare_super(struct super_block *sb, void *data)
910/* 910/*
911 * construct our own bdi so we can control readahead, etc. 911 * construct our own bdi so we can control readahead, etc.
912 */ 912 */
913static atomic_long_t bdi_seq = ATOMIC_INIT(0);
914
913static int ceph_register_bdi(struct super_block *sb, struct ceph_client *client) 915static int ceph_register_bdi(struct super_block *sb, struct ceph_client *client)
914{ 916{
915 int err; 917 int err;
@@ -919,7 +921,8 @@ static int ceph_register_bdi(struct super_block *sb, struct ceph_client *client)
919 client->backing_dev_info.ra_pages = 921 client->backing_dev_info.ra_pages =
920 (client->mount_args->rsize + PAGE_CACHE_SIZE - 1) 922 (client->mount_args->rsize + PAGE_CACHE_SIZE - 1)
921 >> PAGE_SHIFT; 923 >> PAGE_SHIFT;
922 err = bdi_register_dev(&client->backing_dev_info, sb->s_dev); 924 err = bdi_register(&client->backing_dev_info, NULL, "ceph-%d",
925 atomic_long_inc_return(&bdi_seq));
923 if (!err) 926 if (!err)
924 sb->s_bdi = &client->backing_dev_info; 927 sb->s_bdi = &client->backing_dev_info;
925 return err; 928 return err;