X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_mds.h;h=34808e2934050fe037b646056bbcc04b6418f27a;hb=6acf93339ad3297f2e5c659f2269c05df6198f74;hp=de287ea4634940a192c40965766761756a3918ef;hpb=08aa217ce49aba1ded52e0f7adb8a607035123fd;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_mds.h b/lustre/include/lustre_mds.h index de287ea4..34808e2 100644 --- a/lustre/include/lustre_mds.h +++ b/lustre/include/lustre_mds.h @@ -27,7 +27,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2011, 2012, Intel Corporation. + * Copyright (c) 2011, 2014, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -69,13 +69,10 @@ struct mds_capa_info { static inline int md_should_create(__u64 flags) { - return !(flags & MDS_OPEN_DELAY_CREATE || - !(flags & FMODE_WRITE)); + return !(flags & MDS_OPEN_DELAY_CREATE) && (flags & FMODE_WRITE) && + !(flags & MDS_OPEN_LEASE); } -/* these are local flags, used only on the client, private */ -#define M_CHECK_STALE 0200000000 - /** @} mds */ #endif