From: adilger Date: Wed, 12 Jun 2002 20:05:47 +0000 (+0000) Subject: Don't open files (i.e. directories) on the MDS with O_DIRECT. X-Git-Tag: 0.4.2~162 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c7a6e2f5bb32eba3d1802fe92dddfc48e010af7d;p=fs%2Flustre-release.git Don't open files (i.e. directories) on the MDS with O_DIRECT. --- 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));