From c78d05895cc3a8c2df78f6506b5c81e29fd4830d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 28 Nov 2002 15:13:08 +0000 Subject: [PATCH] Removed some debug output I accidently added to the repository. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2107 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Inode.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp b/src/add-ons/kernel/file_systems/bfs/Inode.cpp index d2502b5647..ea341bcb96 100644 --- a/src/add-ons/kernel/file_systems/bfs/Inode.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Inode.cpp @@ -1734,12 +1734,6 @@ Inode::Sync() status_t Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDirectory) { - thread_info info; - if (get_thread_info(find_thread(NULL), &info) == B_OK) { - dprintf("stack base = %p, stack end = %p, size = %ld\n", info.stack_base, info.stack_end, (uint32)info.stack_end - (uint32)info.stack_base); - } else - dprintf("get_thread_info() failed\n"); - BPlusTree *tree; if (GetTree(&tree) != B_OK) RETURN_ERROR(B_BAD_VALUE); @@ -1781,13 +1775,10 @@ Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDir } // remove_vnode() allows the inode to be accessed until the last put_vnode() - if (remove_vnode(fVolume->ID(), id) != B_OK) { - dprintf("remove_vnode() failed!!!\n"); + if (remove_vnode(fVolume->ID(), id) != B_OK) return B_ERROR; - } if (tree->Remove(transaction, name, id) < B_OK) { - dprintf("tree->Remove() failed!!!\n"); unremove_vnode(fVolume->ID(), id); RETURN_ERROR(B_ERROR); } @@ -1805,17 +1796,15 @@ Inode::Remove(Transaction *transaction, const char *name, off_t *_id, bool isDir // fatal error and will not be reported back! // Deleted inodes won't be visible in queries anyway. } - + if ((inode->Mode() & (S_FILE | S_SYMLINK)) != 0) { if (inode->IsFile()) index.RemoveSize(transaction, inode); index.RemoveLastModified(transaction, inode); } - if (inode->WriteBack(transaction) < B_OK) { - dprintf("inode->WriteBack() failed!!!\n"); + if (inode->WriteBack(transaction) < B_OK) return B_ERROR; - } return B_OK; }