From f74ac712aea8d354b70966ffd3f617c65a17d8d0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 2 Oct 2014 13:40:35 +0000 Subject: profiling: Remove a big DEBUG statement I would like to have the freedom to play with the profiling implementation. This is kindof in the way. This code is from pre-SVN days: > commit 7914e9351abb5271ebb4990c3b1fe495d15a4eda > Author: Jeremy Allison > AuthorDate: Thu Oct 5 18:50:18 2000 +0000 > Commit: Jeremy Allison > CommitDate: Thu Oct 5 18:50:18 2000 +0000 > > Herb's fixes for profiling & compiler warnings. > Jeremy. Herb, please speak up quickly if you still need this :-) Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/fileio.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index 91b3102f9c..37c3f665c4 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -362,31 +362,6 @@ ssize_t write_file(struct smb_request *req, contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_WRITE); contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_WRITE); -#ifdef WITH_PROFILE - if (profile_p && profile_p->writecache_total_writes % 500 == 0) { - DEBUG(3,("WRITECACHE: initwrites=%u abutted=%u total=%u \ -nonop=%u allocated=%u active=%u direct=%u perfect=%u readhits=%u\n", - profile_p->writecache_init_writes, - profile_p->writecache_abutted_writes, - profile_p->writecache_total_writes, - profile_p->writecache_non_oplock_writes, - profile_p->writecache_allocated_write_caches, - profile_p->writecache_num_write_caches, - profile_p->writecache_direct_writes, - profile_p->writecache_num_perfect_writes, - profile_p->writecache_read_hits )); - - DEBUG(3,("WRITECACHE: Flushes SEEK=%d, READ=%d, WRITE=%d, READRAW=%d, OPLOCK=%d, CLOSE=%d, SYNC=%d\n", - profile_p->writecache_flushed_writes[SAMBA_SEEK_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_READ_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_WRITE_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_READRAW_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_OPLOCK_RELEASE_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_CLOSE_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_SYNC_FLUSH] )); - } -#endif - if (wcp && req->unread_bytes) { /* If we're using receivefile don't * deal with a write cache. -- cgit