pipe: fix and clarify pipe write wakeup logic
[linux-2.6-microblaze.git] / fs / direct-io.c
index 9329ced..0ec4f27 100644 (file)
@@ -220,27 +220,6 @@ static inline struct page *dio_get_page(struct dio *dio,
        return dio->pages[sdio->head];
 }
 
-/*
- * Warn about a page cache invalidation failure during a direct io write.
- */
-void dio_warn_stale_pagecache(struct file *filp)
-{
-       static DEFINE_RATELIMIT_STATE(_rs, 86400 * HZ, DEFAULT_RATELIMIT_BURST);
-       char pathname[128];
-       struct inode *inode = file_inode(filp);
-       char *path;
-
-       errseq_set(&inode->i_mapping->wb_err, -EIO);
-       if (__ratelimit(&_rs)) {
-               path = file_path(filp, pathname, sizeof(pathname));
-               if (IS_ERR(path))
-                       path = "(unknown)";
-               pr_crit("Page cache invalidation failure on direct I/O.  Possible data corruption due to collision with buffered I/O!\n");
-               pr_crit("File: %s PID: %d Comm: %.20s\n", path, current->pid,
-                       current->comm);
-       }
-}
-
 /*
  * dio_complete() - called when all DIO BIO I/O has been completed
  *