*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
*
* GPL HEADER END
*/
loff_t pos = 0;
int rc;
+ if (dt_dev->dd_rdonly)
+ RETURN(0);
+
info = lu_context_key_get(&env->le_ctx, &seq_thread_key);
LASSERT(info != NULL);
RETURN(rc);
}
-void seq_store_fini(struct lu_server_seq *seq,
- const struct lu_env *env)
+void seq_store_fini(struct lu_server_seq *seq, const struct lu_env *env)
{
- ENTRY;
+ ENTRY;
- if (seq->lss_obj != NULL) {
- if (!IS_ERR(seq->lss_obj))
- lu_object_put(env, &seq->lss_obj->do_lu);
- seq->lss_obj = NULL;
- }
+ if (seq->lss_obj != NULL) {
+ if (!IS_ERR(seq->lss_obj))
+ dt_object_put(env, seq->lss_obj);
+ seq->lss_obj = NULL;
+ }
- EXIT;
+ EXIT;
}