From: xie xingguo Date: Wed, 29 Jun 2016 08:07:07 +0000 (+0800) Subject: os/bluestore: kill unused buffer state "read" X-Git-Tag: ses5-milestone5~554^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ec2adda94fbfcb9b4e004ef903ffa8d35cc0300;p=ceph.git os/bluestore: kill unused buffer state "read" Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index f65024f7e86c..1cad9151789f 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -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;