~ubuntu-branches/ubuntu/precise/ceph/precise-proposed

« back to all changes in this revision

Viewing changes to src/os/FileJournal.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2011-04-25 10:09:05 UTC
  • mfrom: (1.1.3 upstream) (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425100905-exm7dfvi2v5ick02
Tags: 0.27-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 */
14
14
 
15
15
 
16
 
#ifndef CEPH_EBOFS_FILEJOURNAL_H
17
 
#define CEPH_EBOFS_FILEJOURNAL_H
 
16
#ifndef CEPH_FILEJOURNAL_H
 
17
#define CEPH_FILEJOURNAL_H
18
18
 
19
19
#include <deque>
20
20
using std::deque;
118
118
  // throttle
119
119
  Throttle throttle_ops, throttle_bytes;
120
120
 
 
121
  void put_throttle(uint64_t ops, uint64_t bytes);
 
122
 
121
123
  // write thread
122
124
  Mutex write_lock;
123
125
  Cond write_cond, write_empty_cond;
143
145
  int prepare_single_write(bufferlist& bl, off64_t& queue_pos, uint64_t& orig_ops, uint64_t& orig_bytes);
144
146
  void do_write(bufferlist& bl);
145
147
 
146
 
  void write_bl(off64_t& pos, bufferlist& bl);
 
148
  int write_bl(off64_t& pos, bufferlist& bl);
147
149
  void wrap_read_bl(off64_t& pos, int64_t len, bufferlist& bl);
148
150
 
149
151
  class Writer : public Thread {