projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b24ff
)
file writer pre_select() fixes.
author
Andre Noll
<maan@systemlinux.org>
Tue, 5 Jan 2010 05:05:33 +0000
(06:05 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 5 Jan 2010 05:05:33 +0000
(06:05 +0100)
file_write.c
patch
|
blob
|
history
diff --git
a/file_write.c
b/file_write.c
index a9635ca2d558c3c541aca0c73bde435f6ef02acb..8baaa8420a4aea56b0b315956fda7f5d9e0c7698 100644
(file)
--- a/
file_write.c
+++ b/
file_write.c
@@
-97,11
+97,10
@@
static void file_write_pre_select_btr(struct sched *s, struct task *t)
t->error = 0;
pfwd->check_fd = 0;
ret = btr_node_status(wn->btrn, wn->min_iqs);
- if (ret >
=
0) {
+ if (ret > 0) {
para_fd_set(pfwd->fd, &s->wfds, &s->max_fileno);
pfwd->check_fd = 1;
- }
- if (ret != 0) {
+ } else if (ret < 0) {
s->timeout.tv_sec = 0;
s->timeout.tv_usec = 1;
}