* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29479 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-03-12 13:55:23 +00:00
parent e0b0a173b6
commit 31cb93ad43
2 changed files with 7 additions and 4 deletions
@@ -132,6 +132,11 @@ private:
# define T(x) ;
#endif
/*! A helper class used by Inode::Create() to keep track of the belongings
of an inode creation in progress.
This class will make sure everything is cleaned up properly.
*/
class InodeAllocator {
public:
InodeAllocator(Transaction& transaction);
@@ -250,6 +255,8 @@ InodeAllocator::Keep(fs_vnode_ops* vnodeOps, uint32 publishFlags)
return status;
}
// Symbolic links are not published -- the caller needs to do this once
// the contents have been written.
if (!fInode->IsSymLink() && volume->ID() >= 0) {
status = publish_vnode(volume->FSVolume(), fInode->ID(), fInode,
vnodeOps != NULL ? vnodeOps : &gBFSVnodeOps, fInode->Mode(),
@@ -83,10 +83,6 @@ Journal::FreeLogBlocks() const
}
// For now, that's only a dumb class that does more or less nothing
// else than writing the blocks directly to the real location.
// It doesn't yet use logging.
class Transaction {
public:
Transaction(Volume* volume, off_t refBlock)