[prev in list] [next in list] [prev in thread] [next in thread]
List: lustre-cvs
Subject: [Lustre-cvs] CVS: obd/obdfs flushd.c,1.33,1.34
From: Gordon Matzigkeit <gord-fig () users ! sourceforge ! net>
Date: 2001-10-18 16:40:10
[Download RAW message or body]
Update of /cvsroot/lustre/obd/obdfs
In directory usw-pr-cvs1:/tmp/cvs-serv18918
Modified Files:
flushd.c
Log Message:
Don't use printk unconditionally.
Index: flushd.c
===================================================================
RCS file: /cvsroot/lustre/obd/obdfs/flushd.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- flushd.c 2001/10/18 22:11:07 1.33
+++ flushd.c 2001/10/18 23:38:29 1.34
@@ -127,13 +127,13 @@
struct list_head *tmp;
ENTRY;
- printk ("down0\n");
+ CDEBUG(D_INFO, "down0\n");
obd_down(&obdfs_i2sbi(inode)->osi_list_mutex);
- printk ("got down0\n");
+ CDEBUG(D_INFO, "got down0\n");
tmp = obdfs_islist(inode);
if ( list_empty(tmp) ) {
CDEBUG(D_INFO, "no dirty pages for inode %ld\n", inode->i_ino);
- printk ("up 0a");
+ CDEBUG(D_INFO, "up 0a\n");
obd_up(&obdfs_i2sbi(inode)->osi_list_mutex);
EXIT;
return;
@@ -156,7 +156,7 @@
put_page(page);
}
- printk ("up 0b");
+ CDEBUG(D_INFO, "up 0b\n");
obd_up(&obdfs_i2sbi(inode)->osi_list_mutex);
/* decrement inode reference for page cache */
@@ -191,12 +191,12 @@
sbi = list_entry(inode_list, struct obdfs_sb_info, osi_inodes);
- printk ("down1\n");
+ CDEBUG(D_INFO, "down1\n");
obd_down(&sbi->osi_list_mutex);
- printk ("got down1\n");
+ CDEBUG(D_INFO, "got down1\n");
if ( list_empty(inode_list) ) {
CDEBUG(D_INFO, "list empty\n");
- printk ("up 1a\n");
+ CDEBUG(D_INFO, "up 1a\n");
obd_up(&sbi->osi_list_mutex);
EXIT;
return 0;
@@ -261,7 +261,7 @@
num_obdos++;
if ( num_io == MAX_IOVEC ) {
- printk ("up 1b\n");
+ CDEBUG(D_INFO, "up 1b\n");
obd_up(&sbi->osi_list_mutex);
err = obdfs_do_vec_wr(inodes, num_io, num_obdos,
obdos, bufs_per_obdo,
@@ -274,16 +274,16 @@
EXIT;
goto ERR;
}
- printk ("down2\n");
+ CDEBUG(D_INFO, "down2\n");
obd_down(&sbi->osi_list_mutex);
- printk ("got down2\n");
+ CDEBUG(D_INFO, "got down2\n");
goto again;
}
}
}
BREAK:
- printk ("up 2\n");
+ CDEBUG(D_INFO, "up 2\n");
obd_up(&sbi->osi_list_mutex);
/* flush any remaining I/Os */
@@ -301,9 +301,9 @@
* Make sure we don't point at the current inode with tmp
* when we re-init the list on the inode, or we will loop.
*/
- printk ("down3\n");
+ CDEBUG(D_INFO, "down3\n");
obd_down(&sbi->osi_list_mutex);
- printk ("got down3\n");
+ CDEBUG(D_INFO, "got down3\n");
tmp = inode_list;
while ( (tmp = tmp->prev) != inode_list ) {
struct obdfs_inode_info *ii;
@@ -322,7 +322,7 @@
INIT_LIST_HEAD(obdfs_islist(inode));
}
}
- printk ("up 3\n");
+ CDEBUG(D_INFO, "up 3\n");
obd_up(&sbi->osi_list_mutex);
CDEBUG(D_INFO, "flushed %ld pages in total\n", total_io);
@@ -388,7 +388,7 @@
current->pgrp = 1;
strcpy(current->comm, "pupdated");
- printk("pupdated activated...\n");
+ CDEBUG(D_CACHE, "pupdated activated...\n");
pupdated.active = 1;
spin_lock_irqsave(¤t->sigmask_lock, flags);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic