kernel/fs/vfs.c
/*
 * TODO: To be called by ReplyMsg() to update state of delayed_write Buf.
 */
To be called by ReplyMsg() to update state of delayed_write Buf.
To be called by ReplyMsg () to update state of delayed_write Buf .
ssize_t vfs_delwrite_done (struct VNode *vnode, size_t nbytes, off64_t *offset, int status) {
  struct Buf *buf;
  buf = GetBlk(vnode, *offset);
  buf->flags &= ~B_BUSY;
  vnode->busy = FALSE;
  TaskWakeupAll(&buf->rendez);
  return 0;
}
ssize_t vfs_delwrite_done ( struct VNode * vnode , size_t nbytes , off64_t * offset , int status ) { struct Buf * buf ; buf = GetBlk ( vnode , * offset ) ; buf -> flags &= ~ B_BUSY ; vnode -> busy = FALSE ; TaskWakeupAll ( & buf -> rendez ) ; return 0 ; }
TODO: To be called by ReplyMsg() to update state of delayed_write Buf.
TODO : To be called by ReplyMsg () to update state of delayed_write Buf .