From c7a6e2f5bb32eba3d1802fe92dddfc48e010af7d Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 12 Jun 2002 20:05:47 +0000 Subject: [PATCH] Don't open files (i.e. directories) on the MDS with O_DIRECT. --- lustre/mds/handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 5098093..6f54693 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -322,7 +322,7 @@ int mds_open(struct ptlrpc_request *req) } flags = body->flags; - file = dentry_open(de, mnt, flags); + file = dentry_open(de, mnt, flags & ~O_DIRECT); if (!file || IS_ERR(file)) { req->rq_status = -EINVAL; OBD_FREE(mfd, sizeof(*mfd)); -- 1.8.3.1