diff options
Diffstat (limited to 'fs/ceph/super.c')
| -rw-r--r-- | fs/ceph/super.c | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 2eb43f21132..9fe17c6c287 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -71,8 +71,14 @@ static int ceph_statfs(struct dentry *dentry, struct kstatfs *buf)  	/*  	 * express utilization in terms of large blocks to avoid  	 * overflow on 32-bit machines. +	 * +	 * NOTE: for the time being, we make bsize == frsize to humor +	 * not-yet-ancient versions of glibc that are broken. +	 * Someday, we will probably want to report a real block +	 * size...  whatever that may mean for a network file system!  	 */  	buf->f_bsize = 1 << CEPH_BLOCK_SHIFT; +	buf->f_frsize = 1 << CEPH_BLOCK_SHIFT;  	buf->f_blocks = le64_to_cpu(st.kb) >> (CEPH_BLOCK_SHIFT-10);  	buf->f_bfree = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10);  	buf->f_bavail = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10); @@ -80,7 +86,6 @@ static int ceph_statfs(struct dentry *dentry, struct kstatfs *buf)  	buf->f_files = le64_to_cpu(st.num_objects);  	buf->f_ffree = -1;  	buf->f_namelen = NAME_MAX; -	buf->f_frsize = PAGE_CACHE_SIZE;  	/* leave fsid little-endian, regardless of host endianness */  	fsid = *(u64 *)(&monmap->fsid) ^ *((u64 *)&monmap->fsid + 1); @@ -403,8 +408,6 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root)  		seq_printf(m, ",mount_timeout=%d", opt->mount_timeout);  	if (opt->osd_idle_ttl != CEPH_OSD_IDLE_TTL_DEFAULT)  		seq_printf(m, ",osd_idle_ttl=%d", opt->osd_idle_ttl); -	if (opt->osd_timeout != CEPH_OSD_TIMEOUT_DEFAULT) -		seq_printf(m, ",osdtimeout=%d", opt->osd_timeout);  	if (opt->osd_keepalive_timeout != CEPH_OSD_KEEPALIVE_DEFAULT)  		seq_printf(m, ",osdkeepalivetimeout=%d",  			   opt->osd_keepalive_timeout); @@ -849,7 +852,7 @@ static int ceph_register_bdi(struct super_block *sb,  		fsc->backing_dev_info.ra_pages =  			default_backing_dev_info.ra_pages; -	err = bdi_register(&fsc->backing_dev_info, NULL, "ceph-%d", +	err = bdi_register(&fsc->backing_dev_info, NULL, "ceph-%ld",  			   atomic_long_inc_return(&bdi_seq));  	if (!err)  		sb->s_bdi = &fsc->backing_dev_info;  |