X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Ffile.c;h=7c60ff6265e2b3ff8f27b82db59cf97dd4213959;hb=79d06b6fac3d18f2e5755a940e8afa42e70f3ba2;hp=85c307a3a704fee59c69d2296c484c49b5c20d28;hpb=d1c8b37cc0b9808251300790ab9c91409fecfb96;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/file.c b/lustre/liblustre/file.c index 85c307a..7c60ff6 100644 --- a/lustre/liblustre/file.c +++ b/lustre/liblustre/file.c @@ -27,7 +27,7 @@ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2011, Whamcloud, Inc. + * Copyright (c) 2011, 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -186,7 +186,6 @@ int llu_iop_open(struct pnode *pnode, int flags, mode_t mode) struct intnl_stat *st = llu_i2stat(inode); struct ptlrpc_request *request; struct lookup_intent *it; - struct lov_stripe_md *lsm; int rc = 0; ENTRY; @@ -214,8 +213,7 @@ int llu_iop_open(struct pnode *pnode, int flags, mode_t mode) if (!S_ISREG(st->st_mode)) GOTO(out_release, rc = 0); - lsm = lli->lli_smd; - if (lsm) + if (lli->lli_has_smd) flags &= ~O_LOV_DELAY_CREATE; /*XXX: open_flags are overwritten and the previous ones are lost */ lli->lli_open_flags = flags & ~(O_CREAT | O_EXCL | O_TRUNC); @@ -335,10 +333,7 @@ int llu_som_update(struct inode *inode, struct md_op_data *op_data) old_flags & MF_GETATTR_LOCK); if (rc) { oa.o_valid = 0; - if (rc == -ENOENT) - CDEBUG(D_INODE, "objid "LPX64" is destroyed\n", - lli->lli_smd->lsm_object_id); - else + if (rc != -ENOENT) CERROR("inode_getattr failed (%d): unable to " "send a Size-on-MDS attribute update " "for inode %llu/%lu\n", rc,