diff options
author | Sage Weil <sage@inktank.com> | 2013-08-29 02:17:29 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-09-04 07:08:10 +0200 |
commit | 9542cf0bf9b1a3adcc2ef271edbcbdba03abf345 (patch) | |
tree | 6df890d01929cf320f3498e25185a34540053349 /net/ceph/osdmap.c | |
parent | rbd: fix I/O error propagation for reads (diff) | |
download | linux-9542cf0bf9b1a3adcc2ef271edbcbdba03abf345.tar.xz linux-9542cf0bf9b1a3adcc2ef271edbcbdba03abf345.zip |
libceph: use pg_num_mask instead of pgp_num_mask for pg.seed calc
Fix a typo that used the wrong bitmask for the pg.seed calculation. This
is normally unnoticed because in most cases pg_num == pgp_num. It is, however,
a bug that is easily corrected.
CC: stable@vger.kernel.org
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <alex.elder@linary.org>
Diffstat (limited to 'net/ceph/osdmap.c')
-rw-r--r-- | net/ceph/osdmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c index 603ddd92db19..dbd9a4792427 100644 --- a/net/ceph/osdmap.c +++ b/net/ceph/osdmap.c @@ -1129,7 +1129,7 @@ static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid, /* pg_temp? */ pgid.seed = ceph_stable_mod(pgid.seed, pool->pg_num, - pool->pgp_num_mask); + pool->pg_num_mask); pg = __lookup_pg_mapping(&osdmap->pg_temp, pgid); if (pg) { *num = pg->len; |