diff options
-rw-r--r-- | fs/ceph/ceph_fs.h | 2 | ||||
-rw-r--r-- | fs/ceph/osdmap.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/ceph/ceph_fs.h b/fs/ceph/ceph_fs.h index 9b16e2e06ea..f8f27e28a6b 100644 --- a/fs/ceph/ceph_fs.h +++ b/fs/ceph/ceph_fs.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #define CEPH_OSD_PROTOCOL 7 /* cluster internal */ | 38 | #define CEPH_OSD_PROTOCOL 7 /* cluster internal */ |
39 | #define CEPH_MDS_PROTOCOL 9 /* cluster internal */ | 39 | #define CEPH_MDS_PROTOCOL 9 /* cluster internal */ |
40 | #define CEPH_MON_PROTOCOL 5 /* cluster internal */ | 40 | #define CEPH_MON_PROTOCOL 5 /* cluster internal */ |
41 | #define CEPH_OSDC_PROTOCOL 20 /* server/client */ | 41 | #define CEPH_OSDC_PROTOCOL 21 /* server/client */ |
42 | #define CEPH_MDSC_PROTOCOL 29 /* server/client */ | 42 | #define CEPH_MDSC_PROTOCOL 29 /* server/client */ |
43 | #define CEPH_MONC_PROTOCOL 15 /* server/client */ | 43 | #define CEPH_MONC_PROTOCOL 15 /* server/client */ |
44 | 44 | ||
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c index 6f0aeff4185..72d75a239ac 100644 --- a/fs/ceph/osdmap.c +++ b/fs/ceph/osdmap.c | |||
@@ -791,6 +791,8 @@ int ceph_calc_object_layout(struct ceph_object_layout *ol, | |||
791 | pgid.pg64 = 0; /* start with it zeroed out */ | 791 | pgid.pg64 = 0; /* start with it zeroed out */ |
792 | pgid.pg.ps = ceph_full_name_hash(oid, strlen(oid)); | 792 | pgid.pg.ps = ceph_full_name_hash(oid, strlen(oid)); |
793 | pgid.pg.preferred = preferred; | 793 | pgid.pg.preferred = preferred; |
794 | if (preferred >= 0) | ||
795 | pgid.pg.ps += preferred; | ||
794 | pgid.pg.pool = le32_to_cpu(fl->fl_pg_pool); | 796 | pgid.pg.pool = le32_to_cpu(fl->fl_pg_pool); |
795 | if (preferred >= 0) | 797 | if (preferred >= 0) |
796 | dout("calc_object_layout '%s' pgid %d.%xp%d (%llx)\n", oid, | 798 | dout("calc_object_layout '%s' pgid %d.%xp%d (%llx)\n", oid, |