mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
Pull Ceph fixes from Sage Weil: "First, there is a critical fix for the new primary-affinity function that went into -rc1. The second batch of patches from Zheng fix a range of problems with directory fragmentation, readdir, and a few odds and ends for cephfs" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: ceph: reserve caps for file layout/lock MDS requests ceph: avoid releasing caps that are being used ceph: clear directory's completeness when creating file libceph: fix non-default values check in apply_primary_affinity() ceph: use fpos_cmp() to compare dentry positions ceph: check directory's completeness before emitting directory entry
This commit is contained in:
commit
5575eeb7b9
7 changed files with 44 additions and 76 deletions
|
|
@ -1548,8 +1548,10 @@ static void apply_primary_affinity(struct ceph_osdmap *osdmap, u32 pps,
|
|||
return;
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
if (osds[i] != CRUSH_ITEM_NONE &&
|
||||
osdmap->osd_primary_affinity[i] !=
|
||||
int osd = osds[i];
|
||||
|
||||
if (osd != CRUSH_ITEM_NONE &&
|
||||
osdmap->osd_primary_affinity[osd] !=
|
||||
CEPH_OSD_DEFAULT_PRIMARY_AFFINITY) {
|
||||
break;
|
||||
}
|
||||
|
|
@ -1563,10 +1565,9 @@ static void apply_primary_affinity(struct ceph_osdmap *osdmap, u32 pps,
|
|||
* osd's pgs get rejected as primary.
|
||||
*/
|
||||
for (i = 0; i < len; i++) {
|
||||
int osd;
|
||||
int osd = osds[i];
|
||||
u32 aff;
|
||||
|
||||
osd = osds[i];
|
||||
if (osd == CRUSH_ITEM_NONE)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue