diff options
Diffstat (limited to 'net/ceph/osd_client.c')
-rw-r--r-- | net/ceph/osd_client.c | 65 |
1 files changed, 3 insertions, 62 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index a528ea34253a..f3fc54eac09d 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c | |||
@@ -431,68 +431,9 @@ EXPORT_SYMBOL(ceph_osdc_alloc_request); | |||
431 | static bool osd_req_opcode_valid(u16 opcode) | 431 | static bool osd_req_opcode_valid(u16 opcode) |
432 | { | 432 | { |
433 | switch (opcode) { | 433 | switch (opcode) { |
434 | case CEPH_OSD_OP_READ: | 434 | #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true; |
435 | case CEPH_OSD_OP_STAT: | 435 | __CEPH_FORALL_OSD_OPS(GENERATE_CASE) |
436 | case CEPH_OSD_OP_MAPEXT: | 436 | #undef GENERATE_CASE |
437 | case CEPH_OSD_OP_MASKTRUNC: | ||
438 | case CEPH_OSD_OP_SPARSE_READ: | ||
439 | case CEPH_OSD_OP_NOTIFY: | ||
440 | case CEPH_OSD_OP_NOTIFY_ACK: | ||
441 | case CEPH_OSD_OP_ASSERT_VER: | ||
442 | case CEPH_OSD_OP_WRITE: | ||
443 | case CEPH_OSD_OP_WRITEFULL: | ||
444 | case CEPH_OSD_OP_TRUNCATE: | ||
445 | case CEPH_OSD_OP_ZERO: | ||
446 | case CEPH_OSD_OP_DELETE: | ||
447 | case CEPH_OSD_OP_APPEND: | ||
448 | case CEPH_OSD_OP_STARTSYNC: | ||
449 | case CEPH_OSD_OP_SETTRUNC: | ||
450 | case CEPH_OSD_OP_TRIMTRUNC: | ||
451 | case CEPH_OSD_OP_TMAPUP: | ||
452 | case CEPH_OSD_OP_TMAPPUT: | ||
453 | case CEPH_OSD_OP_TMAPGET: | ||
454 | case CEPH_OSD_OP_CREATE: | ||
455 | case CEPH_OSD_OP_ROLLBACK: | ||
456 | case CEPH_OSD_OP_WATCH: | ||
457 | case CEPH_OSD_OP_OMAPGETKEYS: | ||
458 | case CEPH_OSD_OP_OMAPGETVALS: | ||
459 | case CEPH_OSD_OP_OMAPGETHEADER: | ||
460 | case CEPH_OSD_OP_OMAPGETVALSBYKEYS: | ||
461 | case CEPH_OSD_OP_OMAPSETVALS: | ||
462 | case CEPH_OSD_OP_OMAPSETHEADER: | ||
463 | case CEPH_OSD_OP_OMAPCLEAR: | ||
464 | case CEPH_OSD_OP_OMAPRMKEYS: | ||
465 | case CEPH_OSD_OP_OMAP_CMP: | ||
466 | case CEPH_OSD_OP_SETALLOCHINT: | ||
467 | case CEPH_OSD_OP_CLONERANGE: | ||
468 | case CEPH_OSD_OP_ASSERT_SRC_VERSION: | ||
469 | case CEPH_OSD_OP_SRC_CMPXATTR: | ||
470 | case CEPH_OSD_OP_GETXATTR: | ||
471 | case CEPH_OSD_OP_GETXATTRS: | ||
472 | case CEPH_OSD_OP_CMPXATTR: | ||
473 | case CEPH_OSD_OP_SETXATTR: | ||
474 | case CEPH_OSD_OP_SETXATTRS: | ||
475 | case CEPH_OSD_OP_RESETXATTRS: | ||
476 | case CEPH_OSD_OP_RMXATTR: | ||
477 | case CEPH_OSD_OP_PULL: | ||
478 | case CEPH_OSD_OP_PUSH: | ||
479 | case CEPH_OSD_OP_BALANCEREADS: | ||
480 | case CEPH_OSD_OP_UNBALANCEREADS: | ||
481 | case CEPH_OSD_OP_SCRUB: | ||
482 | case CEPH_OSD_OP_SCRUB_RESERVE: | ||
483 | case CEPH_OSD_OP_SCRUB_UNRESERVE: | ||
484 | case CEPH_OSD_OP_SCRUB_STOP: | ||
485 | case CEPH_OSD_OP_SCRUB_MAP: | ||
486 | case CEPH_OSD_OP_WRLOCK: | ||
487 | case CEPH_OSD_OP_WRUNLOCK: | ||
488 | case CEPH_OSD_OP_RDLOCK: | ||
489 | case CEPH_OSD_OP_RDUNLOCK: | ||
490 | case CEPH_OSD_OP_UPLOCK: | ||
491 | case CEPH_OSD_OP_DNLOCK: | ||
492 | case CEPH_OSD_OP_CALL: | ||
493 | case CEPH_OSD_OP_PGLS: | ||
494 | case CEPH_OSD_OP_PGLS_FILTER: | ||
495 | return true; | ||
496 | default: | 437 | default: |
497 | return false; | 438 | return false; |
498 | } | 439 | } |