* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
#include <sys/stat.h>
#include <sys/queue.h>
#include <fcntl.h>
-# include <sysio.h>
-# ifdef HAVE_XTIO_H
-# include <xtio.h>
-# endif
-# include <fs.h>
-# include <mount.h>
-# include <inode.h>
-# ifdef HAVE_FILE_H
-# include <file.h>
-# endif
-# include <liblustre.h>
+#include <liblustre.h>
#endif
#include "cl_object.h"
ENTRY;
- /*
- * XXX layering violation.
- */
- if (cl_i2info(inode)->lli_smd->lsm_stripe_count == 0)
+ if (!cl_i2info(inode)->lli_smd)
RETURN(0);
result = cl_io_get(inode, &env, &io, &refcheck);