aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r--fs/ceph/super.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index 110857ba9269..93ad169a6ae1 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -107,8 +107,8 @@ static int ceph_statfs(struct dentry *dentry, struct kstatfs *buf)
107static int ceph_syncfs(struct super_block *sb, int wait) 107static int ceph_syncfs(struct super_block *sb, int wait)
108{ 108{
109 dout("sync_fs %d\n", wait); 109 dout("sync_fs %d\n", wait);
110 ceph_osdc_sync(&ceph_client(sb)->osdc); 110 ceph_osdc_sync(&ceph_sb_to_client(sb)->osdc);
111 ceph_mdsc_sync(&ceph_client(sb)->mdsc); 111 ceph_mdsc_sync(&ceph_sb_to_client(sb)->mdsc);
112 dout("sync_fs %d done\n", wait); 112 dout("sync_fs %d done\n", wait);
113 return 0; 113 return 0;
114} 114}
@@ -932,9 +932,9 @@ static int ceph_get_sb(struct file_system_type *fs_type,
932 goto out; 932 goto out;
933 } 933 }
934 934
935 if (ceph_client(sb) != client) { 935 if (ceph_sb_to_client(sb) != client) {
936 ceph_destroy_client(client); 936 ceph_destroy_client(client);
937 client = ceph_client(sb); 937 client = ceph_sb_to_client(sb);
938 dout("get_sb got existing client %p\n", client); 938 dout("get_sb got existing client %p\n", client);
939 } else { 939 } else {
940 dout("get_sb using new client %p\n", client); 940 dout("get_sb using new client %p\n", client);