* Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31869 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
71d2034366
commit
61efcc328d
43
src/system/kernel/cache/block_cache.cpp
vendored
43
src/system/kernel/cache/block_cache.cpp
vendored
@ -208,7 +208,8 @@ private:
|
||||
class Get : public Action {
|
||||
public:
|
||||
Get(block_cache* cache, cached_block* block)
|
||||
: Action(cache, block)
|
||||
:
|
||||
Action(cache, block)
|
||||
{
|
||||
Initialized();
|
||||
}
|
||||
@ -219,7 +220,8 @@ public:
|
||||
class Put : public Action {
|
||||
public:
|
||||
Put(block_cache* cache, cached_block* block)
|
||||
: Action(cache, block)
|
||||
:
|
||||
Action(cache, block)
|
||||
{
|
||||
Initialized();
|
||||
}
|
||||
@ -230,7 +232,8 @@ public:
|
||||
class Read : public Action {
|
||||
public:
|
||||
Read(block_cache* cache, cached_block* block)
|
||||
: Action(cache, block)
|
||||
:
|
||||
Action(cache, block)
|
||||
{
|
||||
Initialized();
|
||||
}
|
||||
@ -241,7 +244,8 @@ public:
|
||||
class Write : public Action {
|
||||
public:
|
||||
Write(block_cache* cache, cached_block* block)
|
||||
: Action(cache, block)
|
||||
:
|
||||
Action(cache, block)
|
||||
{
|
||||
Initialized();
|
||||
}
|
||||
@ -252,7 +256,8 @@ public:
|
||||
class Flush : public Action {
|
||||
public:
|
||||
Flush(block_cache* cache, cached_block* block, bool getUnused = false)
|
||||
: Action(cache, block),
|
||||
:
|
||||
Action(cache, block),
|
||||
fGetUnused(getUnused)
|
||||
{
|
||||
Initialized();
|
||||
@ -434,7 +439,7 @@ private:
|
||||
namespace TransactionTracing {
|
||||
|
||||
class Action : public AbstractTraceEntry {
|
||||
public:
|
||||
public:
|
||||
Action(const char* label, block_cache* cache,
|
||||
cache_transaction* transaction)
|
||||
:
|
||||
@ -456,10 +461,10 @@ class Action : public AbstractTraceEntry {
|
||||
fSub ? " sub" : "", fNumBlocks, fSubNumBlocks);
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
char fLabel[12];
|
||||
block_cache *fCache;
|
||||
cache_transaction *fTransaction;
|
||||
block_cache* fCache;
|
||||
cache_transaction* fTransaction;
|
||||
int32 fID;
|
||||
bool fSub;
|
||||
int32 fNumBlocks;
|
||||
@ -467,7 +472,7 @@ class Action : public AbstractTraceEntry {
|
||||
};
|
||||
|
||||
class Detach : public AbstractTraceEntry {
|
||||
public:
|
||||
public:
|
||||
Detach(block_cache* cache, cache_transaction* transaction,
|
||||
cache_transaction* newTransaction)
|
||||
:
|
||||
@ -489,17 +494,17 @@ class Detach : public AbstractTraceEntry {
|
||||
fSub ? " sub" : "");
|
||||
}
|
||||
|
||||
private:
|
||||
block_cache *fCache;
|
||||
cache_transaction *fTransaction;
|
||||
private:
|
||||
block_cache* fCache;
|
||||
cache_transaction* fTransaction;
|
||||
int32 fID;
|
||||
bool fSub;
|
||||
cache_transaction *fNewTransaction;
|
||||
cache_transaction* fNewTransaction;
|
||||
int32 fNewID;
|
||||
};
|
||||
|
||||
class Abort : public AbstractTraceEntry {
|
||||
public:
|
||||
public:
|
||||
Abort(block_cache* cache, cache_transaction* transaction)
|
||||
:
|
||||
fCache(cache),
|
||||
@ -530,11 +535,11 @@ class Abort : public AbstractTraceEntry {
|
||||
out.Print(" %Ld", fBlocks[i]);
|
||||
}
|
||||
|
||||
private:
|
||||
block_cache *fCache;
|
||||
cache_transaction *fTransaction;
|
||||
private:
|
||||
block_cache* fCache;
|
||||
cache_transaction* fTransaction;
|
||||
int32 fID;
|
||||
off_t *fBlocks;
|
||||
off_t* fBlocks;
|
||||
int32 fNumBlocks;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user