4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 only,
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License version 2 for more details (a copy is included
14 * in the LICENSE file that accompanied this code).
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; If not, see
18 * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
20 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 * CA 95054 USA or visit www.sun.com if you need additional information or
27 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
28 * Use is subject to license terms.
30 * Copyright (c) 2011, 2013, Intel Corporation.
33 * This file is part of Lustre, http://www.lustre.org/
34 * Lustre is a trademark of Sun Microsystems, Inc.
36 * lustre/include/md_object.h
38 * Extention of lu_object.h for metadata objects
41 #ifndef _LUSTRE_MD_OBJECT_H
42 #define _LUSTRE_MD_OBJECT_H
44 #ifndef HAVE_SERVER_SUPPORT
45 # error "client code should not depend on md_object.h"
46 #endif /* !HAVE_SERVER_SUPPORT */
49 * Sub-class of lu_object with methods common for "meta-data" objects in MDT
52 * Meta-data objects implement namespace operations: you can link, unlink
53 * them, and treat them as directories.
55 * Examples: mdt, cmm, and mdt are implementations of md interface.
61 * super-class definitions.
63 #include <dt_object.h>
66 struct md_device_operations;
71 struct obd_export *mq_exp;
74 struct md_quota *md_quota(const struct lu_env *env);
76 /** metadata attributes */
83 MA_ACL_DEF = (1 << 5),
84 MA_LOV_DEF = (1 << 6),
85 MA_LAY_GEN = (1 << 7),
89 MA_LMV_DEF = (1 << 11)
106 MDT_REG_LOCK = (1 << 0),
107 MDT_PDO_LOCK = (1 << 1)
110 /* memory structure for hsm attributes
111 * for fields description see the on disk structure hsm_attrs
112 * which is defined in lustre_idl.h
121 #define IOEPOCH_INVAL 0
123 /* memory structure for som attributes
124 * for fields description see the on disk structure som_attrs
125 * which is defined in lustre_idl.h
140 struct lu_attr ma_attr;
141 struct lu_fid ma_pfid;
142 struct md_hsm ma_hsm;
143 struct lov_mds_md *ma_lmm;
144 union lmv_mds_md *ma_lmv;
146 struct lustre_capa *ma_capa;
147 struct md_som_data *ma_som;
154 /** Additional parameters for create */
157 /** symlink target */
158 const char *sp_symname;
159 /** parent FID for cross-ref mkdir */
160 const struct lu_fid *sp_pfid;
161 /** eadata for regular files */
163 /** lov objs exist already */
164 const struct lu_fid *fid;
170 /** Create flag from client: such as MDS_OPEN_CREAT, and others. */
173 /** don't create lov objects or llog cookie - this replay */
174 unsigned int no_create:1,
175 sp_cr_lookup:1, /* do lookup sanity check or not. */
176 sp_rm_entry:1; /* only remove name entry */
178 /** Current lock mode for parent dir where create is performing. */
179 mdl_mode_t sp_cr_mode;
181 /** to create directory */
182 const struct dt_index_features *sp_feat;
185 union ldlm_policy_data;
187 * Operations implemented for each md object (both directory and leaf).
189 struct md_object_operations {
190 int (*moo_permission)(const struct lu_env *env,
191 struct md_object *pobj, struct md_object *cobj,
192 struct md_attr *attr, int mask);
194 int (*moo_attr_get)(const struct lu_env *env, struct md_object *obj,
195 struct md_attr *attr);
197 int (*moo_attr_set)(const struct lu_env *env, struct md_object *obj,
198 const struct md_attr *attr);
200 int (*moo_xattr_get)(const struct lu_env *env, struct md_object *obj,
201 struct lu_buf *buf, const char *name);
203 int (*moo_xattr_list)(const struct lu_env *env, struct md_object *obj,
206 int (*moo_xattr_set)(const struct lu_env *env, struct md_object *obj,
207 const struct lu_buf *buf, const char *name,
210 int (*moo_xattr_del)(const struct lu_env *env, struct md_object *obj,
213 /** This method is used to swap the layouts between 2 objects */
214 int (*moo_swap_layouts)(const struct lu_env *env,
215 struct md_object *obj1, struct md_object *obj2,
218 /** \retval number of bytes actually read upon success */
219 int (*moo_readpage)(const struct lu_env *env, struct md_object *obj,
220 const struct lu_rdpg *rdpg);
222 int (*moo_readlink)(const struct lu_env *env, struct md_object *obj,
224 int (*moo_changelog)(const struct lu_env *env,
225 enum changelog_rec_type type, int flags,
226 struct md_object *obj);
227 /** part of cross-ref operation */
228 int (*moo_object_create)(const struct lu_env *env,
229 struct md_object *obj,
230 const struct md_op_spec *spec,
233 int (*moo_ref_add)(const struct lu_env *env,
234 struct md_object *obj,
235 const struct md_attr *ma);
237 int (*moo_ref_del)(const struct lu_env *env,
238 struct md_object *obj,
241 int (*moo_open)(const struct lu_env *env,
242 struct md_object *obj, int flag);
244 int (*moo_close)(const struct lu_env *env, struct md_object *obj,
245 struct md_attr *ma, int mode);
247 int (*moo_capa_get)(const struct lu_env *, struct md_object *,
248 struct lustre_capa *, int renewal);
250 int (*moo_object_sync)(const struct lu_env *, struct md_object *);
252 int (*moo_file_lock)(const struct lu_env *env, struct md_object *obj,
253 struct lov_mds_md *lmm, struct ldlm_extent *extent,
254 struct lustre_handle *lockh);
255 int (*moo_file_unlock)(const struct lu_env *env, struct md_object *obj,
256 struct lov_mds_md *lmm,
257 struct lustre_handle *lockh);
258 int (*moo_object_lock)(const struct lu_env *env, struct md_object *obj,
259 struct lustre_handle *lh,
260 struct ldlm_enqueue_info *einfo,
261 union ldlm_policy_data *policy);
262 int (*moo_object_unlock)(const struct lu_env *env,
263 struct md_object *obj,
264 struct ldlm_enqueue_info *einfo,
265 union ldlm_policy_data *policy);
269 * Operations implemented for each directory object.
271 struct md_dir_operations {
272 int (*mdo_is_subdir) (const struct lu_env *env, struct md_object *obj,
273 const struct lu_fid *fid, struct lu_fid *sfid);
275 int (*mdo_lookup)(const struct lu_env *env, struct md_object *obj,
276 const struct lu_name *lname, struct lu_fid *fid,
277 struct md_op_spec *spec);
279 mdl_mode_t (*mdo_lock_mode)(const struct lu_env *env,
280 struct md_object *obj,
283 int (*mdo_create)(const struct lu_env *env, struct md_object *pobj,
284 const struct lu_name *lname, struct md_object *child,
285 struct md_op_spec *spec,
288 /** This method is used for creating data object for this meta object*/
289 int (*mdo_create_data)(const struct lu_env *env, struct md_object *p,
291 const struct md_op_spec *spec,
294 int (*mdo_rename)(const struct lu_env *env, struct md_object *spobj,
295 struct md_object *tpobj, const struct lu_fid *lf,
296 const struct lu_name *lsname, struct md_object *tobj,
297 const struct lu_name *ltname, struct md_attr *ma);
299 int (*mdo_link)(const struct lu_env *env, struct md_object *tgt_obj,
300 struct md_object *src_obj, const struct lu_name *lname,
303 int (*mdo_unlink)(const struct lu_env *env, struct md_object *pobj,
304 struct md_object *cobj, const struct lu_name *lname,
305 struct md_attr *ma, int no_name);
307 int (*mdo_migrate)(const struct lu_env *env, struct md_object *pobj,
308 struct md_object *sobj, const struct lu_name *lname,
309 struct md_object *tobj, struct md_attr *ma);
310 /** This method is used to compare a requested layout to an existing
311 * layout (struct lov_mds_md_v1/3 vs struct lov_mds_md_v1/3) */
312 int (*mdo_lum_lmm_cmp)(const struct lu_env *env,
313 struct md_object *cobj,
314 const struct md_op_spec *spec,
317 /** partial ops for cross-ref case */
318 int (*mdo_name_insert)(const struct lu_env *env,
319 struct md_object *obj,
320 const struct lu_name *lname,
321 const struct lu_fid *fid,
322 const struct md_attr *ma);
324 int (*mdo_name_remove)(const struct lu_env *env,
325 struct md_object *obj,
326 const struct lu_name *lname,
327 const struct md_attr *ma);
329 int (*mdo_rename_tgt)(const struct lu_env *env, struct md_object *pobj,
330 struct md_object *tobj, const struct lu_fid *fid,
331 const struct lu_name *lname, struct md_attr *ma);
334 struct md_device_operations {
335 /** meta-data device related handlers. */
336 int (*mdo_root_get)(const struct lu_env *env, struct md_device *m,
339 int (*mdo_maxeasize_get)(const struct lu_env *env, struct md_device *m,
342 int (*mdo_statfs)(const struct lu_env *env, struct md_device *m,
343 struct obd_statfs *sfs);
345 int (*mdo_init_capa_ctxt)(const struct lu_env *env, struct md_device *m,
346 int mode, unsigned long timeout, __u32 alg,
347 struct lustre_capa_key *keys);
349 int (*mdo_update_capa_key)(const struct lu_env *env,
351 struct lustre_capa_key *key);
353 int (*mdo_llog_ctxt_get)(const struct lu_env *env,
354 struct md_device *m, int idx, void **h);
356 int (*mdo_iocontrol)(const struct lu_env *env, struct md_device *m,
357 unsigned int cmd, int len, void *data);
360 enum md_upcall_event {
361 /** Sync the md layer*/
362 MD_LOV_SYNC = (1 << 0),
363 /** Just for split, no need trans, for replay */
364 MD_NO_TRANS = (1 << 1),
365 MD_LOV_CONFIG = (1 << 2),
366 /** Trigger quota recovery */
367 MD_LOV_QUOTA = (1 << 3)
371 /** this lock protects upcall using against its removal
372 * read lock is for usage the upcall, write - for init/fini */
373 struct rw_semaphore mu_upcall_sem;
374 /** device to call, upper layer normally */
375 struct md_device *mu_upcall_dev;
376 /** upcall function */
377 int (*mu_upcall)(const struct lu_env *env, struct md_device *md,
378 enum md_upcall_event ev, void *data);
382 struct lu_device md_lu_dev;
383 const struct md_device_operations *md_ops;
384 struct md_upcall md_upcall;
387 static inline void md_upcall_init(struct md_device *m, void *upcl)
389 init_rwsem(&m->md_upcall.mu_upcall_sem);
390 m->md_upcall.mu_upcall_dev = NULL;
391 m->md_upcall.mu_upcall = upcl;
394 static inline void md_upcall_dev_set(struct md_device *m, struct md_device *up)
396 down_write(&m->md_upcall.mu_upcall_sem);
397 m->md_upcall.mu_upcall_dev = up;
398 up_write(&m->md_upcall.mu_upcall_sem);
401 static inline void md_upcall_fini(struct md_device *m)
403 down_write(&m->md_upcall.mu_upcall_sem);
404 m->md_upcall.mu_upcall_dev = NULL;
405 m->md_upcall.mu_upcall = NULL;
406 up_write(&m->md_upcall.mu_upcall_sem);
409 static inline int md_do_upcall(const struct lu_env *env, struct md_device *m,
410 enum md_upcall_event ev, void *data)
413 down_read(&m->md_upcall.mu_upcall_sem);
414 if (m->md_upcall.mu_upcall_dev != NULL &&
415 m->md_upcall.mu_upcall_dev->md_upcall.mu_upcall != NULL) {
416 rc = m->md_upcall.mu_upcall_dev->md_upcall.mu_upcall(env,
417 m->md_upcall.mu_upcall_dev,
420 up_read(&m->md_upcall.mu_upcall_sem);
425 struct lu_object mo_lu;
426 const struct md_object_operations *mo_ops;
427 const struct md_dir_operations *mo_dir_ops;
430 /* Mark the object to be dead, and can not be accessed anymore.
431 * XXX, right now, it will only be used for striped directory to
432 * mark the slave stripes dead, when deleting master object. It will be
433 * stored in slave LMV EA (see lod_mark_dead_object), which is only
434 * temporary, and will be removed later when we have proper way to mark
435 * the dead object. */
436 #define LUSTRE_SLAVE_DEAD_FL 0x80000000
438 static inline struct md_device *lu2md_dev(const struct lu_device *d)
440 LASSERT(IS_ERR(d) || lu_device_is_md(d));
441 return container_of0(d, struct md_device, md_lu_dev);
444 static inline struct lu_device *md2lu_dev(struct md_device *d)
446 return &d->md_lu_dev;
449 static inline struct md_object *lu2md(const struct lu_object *o)
451 LASSERT(o == NULL || IS_ERR(o) || lu_device_is_md(o->lo_dev));
452 return container_of0(o, struct md_object, mo_lu);
455 static inline struct md_object *md_object_next(const struct md_object *obj)
457 return (obj ? lu2md(lu_object_next(&obj->mo_lu)) : NULL);
460 static inline int md_device_init(struct md_device *md, struct lu_device_type *t)
462 return lu_device_init(&md->md_lu_dev, t);
465 static inline void md_device_fini(struct md_device *md)
467 lu_device_fini(&md->md_lu_dev);
470 static inline struct md_object *md_object_find_slice(const struct lu_env *env,
471 struct md_device *md,
472 const struct lu_fid *f)
474 return lu2md(lu_object_find_slice(env, md2lu_dev(md), f, NULL));
479 static inline int mo_permission(const struct lu_env *env,
485 LASSERT(c->mo_ops->moo_permission);
486 return c->mo_ops->moo_permission(env, p, c, at, mask);
489 static inline int mo_attr_get(const struct lu_env *env,
493 LASSERT(m->mo_ops->moo_attr_get);
494 return m->mo_ops->moo_attr_get(env, m, at);
497 static inline int mo_readlink(const struct lu_env *env,
501 LASSERT(m->mo_ops->moo_readlink);
502 return m->mo_ops->moo_readlink(env, m, buf);
505 static inline int mo_changelog(const struct lu_env *env,
506 enum changelog_rec_type type,
507 int flags, struct md_object *m)
509 LASSERT(m->mo_ops->moo_changelog);
510 return m->mo_ops->moo_changelog(env, type, flags, m);
513 static inline int mo_attr_set(const struct lu_env *env,
515 const struct md_attr *at)
517 LASSERT(m->mo_ops->moo_attr_set);
518 return m->mo_ops->moo_attr_set(env, m, at);
521 static inline int mo_xattr_get(const struct lu_env *env,
526 LASSERT(m->mo_ops->moo_xattr_get);
527 return m->mo_ops->moo_xattr_get(env, m, buf, name);
530 static inline int mo_xattr_del(const struct lu_env *env,
534 LASSERT(m->mo_ops->moo_xattr_del);
535 return m->mo_ops->moo_xattr_del(env, m, name);
538 static inline int mo_xattr_set(const struct lu_env *env,
540 const struct lu_buf *buf,
544 LASSERT(m->mo_ops->moo_xattr_set);
545 return m->mo_ops->moo_xattr_set(env, m, buf, name, flags);
548 static inline int mo_xattr_list(const struct lu_env *env,
552 LASSERT(m->mo_ops->moo_xattr_list);
553 return m->mo_ops->moo_xattr_list(env, m, buf);
556 static inline int mo_swap_layouts(const struct lu_env *env,
557 struct md_object *o1,
558 struct md_object *o2, __u64 flags)
560 LASSERT(o1->mo_ops->moo_swap_layouts);
561 LASSERT(o2->mo_ops->moo_swap_layouts);
562 if (o1->mo_ops->moo_swap_layouts != o2->mo_ops->moo_swap_layouts)
564 return o1->mo_ops->moo_swap_layouts(env, o1, o2, flags);
567 static inline int mo_open(const struct lu_env *env,
571 LASSERT(m->mo_ops->moo_open);
572 return m->mo_ops->moo_open(env, m, flags);
575 static inline int mo_close(const struct lu_env *env,
580 LASSERT(m->mo_ops->moo_close);
581 return m->mo_ops->moo_close(env, m, ma, mode);
584 static inline int mo_readpage(const struct lu_env *env,
586 const struct lu_rdpg *rdpg)
588 LASSERT(m->mo_ops->moo_readpage);
589 return m->mo_ops->moo_readpage(env, m, rdpg);
592 static inline int mo_object_create(const struct lu_env *env,
594 const struct md_op_spec *spc,
597 LASSERT(m->mo_ops->moo_object_create);
598 return m->mo_ops->moo_object_create(env, m, spc, at);
601 static inline int mo_ref_add(const struct lu_env *env,
603 const struct md_attr *ma)
605 LASSERT(m->mo_ops->moo_ref_add);
606 return m->mo_ops->moo_ref_add(env, m, ma);
609 static inline int mo_ref_del(const struct lu_env *env,
613 LASSERT(m->mo_ops->moo_ref_del);
614 return m->mo_ops->moo_ref_del(env, m, ma);
617 static inline int mo_capa_get(const struct lu_env *env,
619 struct lustre_capa *c,
622 LASSERT(m->mo_ops->moo_capa_get);
623 return m->mo_ops->moo_capa_get(env, m, c, renewal);
626 static inline int mo_object_sync(const struct lu_env *env, struct md_object *m)
628 LASSERT(m->mo_ops->moo_object_sync);
629 return m->mo_ops->moo_object_sync(env, m);
632 static inline int mo_file_lock(const struct lu_env *env, struct md_object *m,
633 struct lov_mds_md *lmm,
634 struct ldlm_extent *extent,
635 struct lustre_handle *lockh)
637 LASSERT(m->mo_ops->moo_file_lock);
638 return m->mo_ops->moo_file_lock(env, m, lmm, extent, lockh);
641 static inline int mo_file_unlock(const struct lu_env *env, struct md_object *m,
642 struct lov_mds_md *lmm,
643 struct lustre_handle *lockh)
645 LASSERT(m->mo_ops->moo_file_unlock);
646 return m->mo_ops->moo_file_unlock(env, m, lmm, lockh);
649 static inline int mo_object_lock(const struct lu_env *env,
651 struct lustre_handle *lh,
652 struct ldlm_enqueue_info *einfo,
653 union ldlm_policy_data *policy)
655 LASSERT(m->mo_ops->moo_object_lock);
656 return m->mo_ops->moo_object_lock(env, m, lh, einfo, policy);
659 static inline int mo_object_unlock(const struct lu_env *env,
661 struct ldlm_enqueue_info *einfo,
662 union ldlm_policy_data *policy)
664 LASSERT(m->mo_ops->moo_object_unlock);
665 return m->mo_ops->moo_object_unlock(env, m, einfo, policy);
668 static inline int mdo_lookup(const struct lu_env *env,
670 const struct lu_name *lname,
672 struct md_op_spec *spec)
674 LASSERT(p->mo_dir_ops->mdo_lookup);
675 return p->mo_dir_ops->mdo_lookup(env, p, lname, f, spec);
678 static inline mdl_mode_t mdo_lock_mode(const struct lu_env *env,
679 struct md_object *mo,
682 if (mo->mo_dir_ops->mdo_lock_mode == NULL)
684 return mo->mo_dir_ops->mdo_lock_mode(env, mo, lm);
687 static inline int mdo_create(const struct lu_env *env,
689 const struct lu_name *lchild_name,
691 struct md_op_spec *spc,
694 LASSERT(p->mo_dir_ops->mdo_create);
695 return p->mo_dir_ops->mdo_create(env, p, lchild_name, c, spc, at);
698 static inline int mdo_create_data(const struct lu_env *env,
701 const struct md_op_spec *spec,
704 LASSERT(c->mo_dir_ops->mdo_create_data);
705 return c->mo_dir_ops->mdo_create_data(env, p, c, spec, ma);
708 static inline int mdo_rename(const struct lu_env *env,
709 struct md_object *sp,
710 struct md_object *tp,
711 const struct lu_fid *lf,
712 const struct lu_name *lsname,
714 const struct lu_name *ltname,
717 LASSERT(tp->mo_dir_ops->mdo_rename);
718 return tp->mo_dir_ops->mdo_rename(env, sp, tp, lf, lsname, t, ltname,
722 static inline int mdo_migrate(const struct lu_env *env,
723 struct md_object *pobj,
724 struct md_object *sobj,
725 const struct lu_name *lname,
726 struct md_object *tobj,
729 LASSERT(pobj->mo_dir_ops->mdo_migrate);
730 return pobj->mo_dir_ops->mdo_migrate(env, pobj, sobj, lname, tobj, ma);
733 static inline int mdo_is_subdir(const struct lu_env *env,
734 struct md_object *mo,
735 const struct lu_fid *fid,
738 LASSERT(mo->mo_dir_ops->mdo_is_subdir);
739 return mo->mo_dir_ops->mdo_is_subdir(env, mo, fid, sfid);
742 static inline int mdo_link(const struct lu_env *env,
745 const struct lu_name *lname,
748 LASSERT(s->mo_dir_ops->mdo_link);
749 return s->mo_dir_ops->mdo_link(env, p, s, lname, ma);
752 static inline int mdo_unlink(const struct lu_env *env,
755 const struct lu_name *lname,
756 struct md_attr *ma, int no_name)
758 LASSERT(p->mo_dir_ops->mdo_unlink);
759 return p->mo_dir_ops->mdo_unlink(env, p, c, lname, ma, no_name);
762 static inline int mdo_lum_lmm_cmp(const struct lu_env *env,
764 const struct md_op_spec *spec,
767 LASSERT(c->mo_dir_ops->mdo_lum_lmm_cmp);
768 return c->mo_dir_ops->mdo_lum_lmm_cmp(env, c, spec, ma);
771 static inline int mdo_name_insert(const struct lu_env *env,
773 const struct lu_name *lname,
774 const struct lu_fid *f,
775 const struct md_attr *ma)
777 LASSERT(p->mo_dir_ops->mdo_name_insert);
778 return p->mo_dir_ops->mdo_name_insert(env, p, lname, f, ma);
781 static inline int mdo_name_remove(const struct lu_env *env,
783 const struct lu_name *lname,
784 const struct md_attr *ma)
786 LASSERT(p->mo_dir_ops->mdo_name_remove);
787 return p->mo_dir_ops->mdo_name_remove(env, p, lname, ma);
790 static inline int mdo_rename_tgt(const struct lu_env *env,
793 const struct lu_fid *lf,
794 const struct lu_name *lname,
798 LASSERT(t->mo_dir_ops->mdo_rename_tgt);
799 return t->mo_dir_ops->mdo_rename_tgt(env, p, t, lf, lname, ma);
801 LASSERT(p->mo_dir_ops->mdo_rename_tgt);
802 return p->mo_dir_ops->mdo_rename_tgt(env, p, t, lf, lname, ma);
807 * Used in MDD/OUT layer for object lock rule
809 enum mdd_object_role {
819 * Structure to hold object information. This is used to create object
820 * \pre llod_dir exist
822 struct lu_local_obj_desc {
823 const char *llod_dir;
824 const char *llod_name;
827 const struct dt_index_features *llod_feat;
828 struct list_head llod_linkage;
831 int lustre_buf2som(void *buf, int rc, struct md_som_data *msd);
832 int lustre_buf2hsm(void *buf, int rc, struct md_hsm *mh);
833 void lustre_hsm2buf(void *buf, const struct md_hsm *mh);
852 __u32 uc_suppgids[2];
855 struct group_info *uc_ginfo;
856 struct md_identity *uc_identity;
859 struct lu_ucred *lu_ucred(const struct lu_env *env);
861 struct lu_ucred *lu_ucred_check(const struct lu_env *env);
863 struct lu_ucred *lu_ucred_assert(const struct lu_env *env);
865 int lu_ucred_global_init(void);
867 void lu_ucred_global_fini(void);
869 #define md_cap_t(x) (x)
871 #define MD_CAP_TO_MASK(x) (1 << (x))
873 #define md_cap_raised(c, flag) (md_cap_t(c) & MD_CAP_TO_MASK(flag))
875 /* capable() is copied from linux kernel! */
876 static inline int md_capable(struct lu_ucred *uc, cfs_cap_t cap)
878 if (md_cap_raised(uc->uc_cap, cap))
884 #endif /* _LINUX_MD_OBJECT_H */