[Ocfs2-commits] zab commits r2146 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Apr 15 18:27:27 CDT 2005


Author: zab
Signed-off-by: jlbec
Date: 2005-04-15 18:27:25 -0500 (Fri, 15 Apr 2005)
New Revision: 2146

Modified:
   trunk/fs/ocfs2/aio.c
Log:
o provide a ki_cancel that doesn't change behaviour but just stops the
  core from spewing to the console.

Signed-off-by: jlbec


Modified: trunk/fs/ocfs2/aio.c
===================================================================
--- trunk/fs/ocfs2/aio.c	2005-04-15 21:12:26 UTC (rev 2145)
+++ trunk/fs/ocfs2/aio.c	2005-04-15 23:27:25 UTC (rev 2146)
@@ -170,6 +170,13 @@
 	flush_scheduled_work();
 }
 
+/* just to stop sys_io_cancel() from spewing to the console when it sees an 
+ * iocb without ki_cancel */ 
+static int ocfs2_ki_cancel(struct kiocb *iocb, struct io_event *ev)
+{
+	return -EAGAIN;
+}
+
 static struct ocfs2_kiocb_private *okp_alloc(struct kiocb *iocb)
 {
 	struct inode *inode = iocb->ki_filp->f_dentry->d_inode;
@@ -197,6 +204,7 @@
 
 	iocb->private = okp;
 	iocb->ki_dtor = ocfs2_ki_dtor;
+	iocb->ki_cancel = ocfs2_ki_cancel;
 	INIT_BUFFER_LOCK_CTXT(&okp->kp_ctxt);
 
 	INIT_LIST_HEAD(&okp->kp_teardown_item);



More information about the Ocfs2-commits mailing list