]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge remote-tracking branch 'origin/wip-rbd-readahead'
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 16 Oct 2014 21:33:42 +0000 (14:33 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 16 Oct 2014 21:33:42 +0000 (14:33 -0700)
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Conflicts:
src/client/Fh.h

1  2 
src/client/Client.cc
src/client/Client.h
src/client/Fh.h
src/common/Makefile.am
src/common/config_opts.h
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h
src/test/Makefile.am

Simple merge
Simple merge
diff --cc src/client/Fh.h
index 61bf2584de8b1d7d6f724ae07c095543ebf25dc2,a4050a78480cd882659ab97ac8229be0986f6cbc..6f0aebd5d941ab10fe099aaecadce9bc56f154d7
@@@ -19,18 -19,10 +20,14 @@@ struct Fh 
    bool pos_locked;           // pos is currently in use
    list<Cond*> pos_waiters;   // waiters for pos
  
-   // readahead state
-   loff_t last_pos;
-   loff_t consec_read_bytes;
-   int nr_consec_read;
+   Readahead readahead;
  
 +  // file lock
 +  ceph_lock_state_t *fcntl_locks;
 +  ceph_lock_state_t *flock_locks;
 +
    Fh() : inode(0), pos(0), mds(0), mode(0), flags(0), pos_locked(false),
-        last_pos(0), consec_read_bytes(0), nr_consec_read(0),
-        fcntl_locks(NULL), flock_locks(NULL)  {}
 -      readahead() {}
++      readahead(), fcntl_locks(NULL), flock_locks(NULL) {}
  };
  
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge