]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: add object_info_t::FLAG_DIRTY
authorSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 23:19:48 +0000 (16:19 -0700)
committerSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 23:19:48 +0000 (16:19 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/osd_types.h

index 9d440e25bde3db740d7b806c2ceb9e68ed9b2837..8e5b7319bd6e3e80332d50620a8e84b7cbdcb917 100644 (file)
@@ -2099,6 +2099,7 @@ struct object_info_t {
   typedef enum {
     FLAG_LOST     = 1<<0,
     FLAG_WHITEOUT = 1<<1,  // object logically does not exist
+    FLAG_DIRTY    = 1<<2,  // object has been modified since last flushed or undirtied
     // ...
     FLAG_USES_TMAP = 1<<8,
   } flag_t;
@@ -2132,6 +2133,9 @@ struct object_info_t {
   bool is_whiteout() const {
     return test_flag(FLAG_WHITEOUT);
   }
+  bool is_dirty() const {
+    return test_flag(FLAG_DIRTY);
+  }
 
   void encode(bufferlist& bl) const;
   void decode(bufferlist::iterator& bl);