]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: kill unused buffer state "read"
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 29 Jun 2016 08:07:07 +0000 (16:07 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 30 Jun 2016 08:07:41 +0000 (16:07 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.h

index f65024f7e86ca63d0fe53f1c72d6a83a21105cd5..1cad9151789fdc9afabb858039c29690cfc2366b 100644 (file)
@@ -114,14 +114,12 @@ public:
       STATE_EMPTY,     ///< empty buffer -- used for cache history
       STATE_CLEAN,     ///< clean data that is up to date
       STATE_WRITING,   ///< data that is being written (io not yet complete)
-      STATE_READING,
     };
     static const char *get_state_name(int s) {
       switch (s) {
       case STATE_EMPTY: return "empty";
       case STATE_CLEAN: return "clean";
       case STATE_WRITING: return "writing";
-      case STATE_READING: return "reading";
       default: return "???";
       }
     }
@@ -164,9 +162,6 @@ public:
     bool is_writing() const {
       return state == STATE_WRITING;
     }
-    bool is_reading() const {
-      return state == STATE_READING;
-    }
 
     uint64_t end() const {
       return offset + length;