ocfs2.h (19ece546a418997226bd91552fbc41abcb05cea6) ocfs2.h (70ad1ba7b48364d758a112df0823edc5ca6632aa)
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * ocfs2.h
5 *
6 * Defines macros and structures used in OCFS2
7 *
8 * Copyright (C) 2002, 2004 Oracle. All rights reserved.

--- 368 unchanged lines hidden (view full) ---

377
378static inline int ocfs2_supports_xattr(struct ocfs2_super *osb)
379{
380 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_XATTR)
381 return 1;
382 return 0;
383}
384
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * ocfs2.h
5 *
6 * Defines macros and structures used in OCFS2
7 *
8 * Copyright (C) 2002, 2004 Oracle. All rights reserved.

--- 368 unchanged lines hidden (view full) ---

377
378static inline int ocfs2_supports_xattr(struct ocfs2_super *osb)
379{
380 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_XATTR)
381 return 1;
382 return 0;
383}
384
385static inline int ocfs2_meta_ecc(struct ocfs2_super *osb)
386{
387 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_META_ECC)
388 return 1;
389 return 0;
390}
391
385/* set / clear functions because cluster events can make these happen
386 * in parallel so we want the transitions to be atomic. this also
387 * means that any future flags osb_flags must be protected by spinlock
388 * too! */
389static inline void ocfs2_set_osb_flag(struct ocfs2_super *osb,
390 unsigned long flag)
391{
392 spin_lock(&osb->osb_lock);

--- 217 unchanged lines hidden (view full) ---

610
611 return slot;
612}
613
614#define ocfs2_set_bit ext2_set_bit
615#define ocfs2_clear_bit ext2_clear_bit
616#define ocfs2_test_bit ext2_test_bit
617#define ocfs2_find_next_zero_bit ext2_find_next_zero_bit
392/* set / clear functions because cluster events can make these happen
393 * in parallel so we want the transitions to be atomic. this also
394 * means that any future flags osb_flags must be protected by spinlock
395 * too! */
396static inline void ocfs2_set_osb_flag(struct ocfs2_super *osb,
397 unsigned long flag)
398{
399 spin_lock(&osb->osb_lock);

--- 217 unchanged lines hidden (view full) ---

617
618 return slot;
619}
620
621#define ocfs2_set_bit ext2_set_bit
622#define ocfs2_clear_bit ext2_clear_bit
623#define ocfs2_test_bit ext2_test_bit
624#define ocfs2_find_next_zero_bit ext2_find_next_zero_bit
625#define ocfs2_find_next_bit ext2_find_next_bit
618#endif /* OCFS2_H */
619
626#endif /* OCFS2_H */
627