summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/llite/rw.c
diff options
context:
space:
mode:
authorBobi Jam <bobijam.xu@intel.com>2016-04-12 21:11:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-26 15:13:13 -0700
commit06d2fccd6b551be8c1efb8b37d01c511d2b3e905 (patch)
tree8ebfe97633d0654d72cb11c2f8cdf498ad38d162 /drivers/staging/lustre/lustre/llite/rw.c
parent6a6514719455fd114a17c0e8c6ffff0f8c5151d6 (diff)
downloadop-kernel-dev-06d2fccd6b551be8c1efb8b37d01c511d2b3e905.zip
op-kernel-dev-06d2fccd6b551be8c1efb8b37d01c511d2b3e905.tar.gz
staging/lustre/llite: suppress non active IO error message
Current CLIO does not support fadvise, suppress the error message. Signed-off-by: Bobi Jam <bobijam.xu@intel.com> Reviewed-on: http://review.whamcloud.com/9658 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4717 Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite/rw.c')
-rw-r--r--drivers/staging/lustre/lustre/llite/rw.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/staging/lustre/lustre/llite/rw.c b/drivers/staging/lustre/lustre/llite/rw.c
index fee319c..4ddf8b3 100644
--- a/drivers/staging/lustre/lustre/llite/rw.c
+++ b/drivers/staging/lustre/lustre/llite/rw.c
@@ -111,16 +111,9 @@ struct ll_cl_context *ll_cl_init(struct file *file, struct page *vmpage)
vio = vvp_env_io(env);
io = vio->vui_cl.cis_io;
lcc->lcc_io = io;
- if (!io) {
- struct inode *inode = file_inode(file);
-
- CERROR("%s: " DFID " no active IO, please file a ticket.\n",
- ll_get_fsname(inode->i_sb, NULL, 0),
- PFID(ll_inode2fid(inode)));
- dump_stack();
-
+ if (!io)
result = -EIO;
- }
+
if (result == 0 && vmpage) {
struct cl_page *page;
OpenPOWER on IntegriCloud