| /fs/xfs/ |
| A D | xfs_health.c | 106 unsigned int mask) in xfs_fs_mark_sick() argument 120 unsigned int mask) in xfs_fs_mark_corrupt() argument 135 unsigned int mask) in xfs_fs_mark_healthy() argument 166 unsigned int mask) in xfs_agno_mark_sick() argument 181 unsigned int mask) in xfs_group_check_mask() argument 193 unsigned int mask) in xfs_group_mark_sick() argument 209 unsigned int mask) in xfs_group_mark_corrupt() argument 226 unsigned int mask) in xfs_group_mark_healthy() argument 257 unsigned int mask) in xfs_rgno_mark_sick() argument 273 unsigned int mask) in xfs_inode_mark_sick() argument [all …]
|
| /fs/ocfs2/cluster/ |
| A D | masklog.h | 118 #define __mlog_test_u64(mask, bits) \ argument 120 ((u64)(mask) >> 32) & bits.words[1] ) 129 #define MLOG_BITS_RHS(mask) { \ argument 131 [0] = (u32)(mask & 0xffffffff), \ 132 [1] = (u64)(mask) >> 32, \ 138 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument 140 bits.words[0] |= (mask); \ 143 bits.words[0] &= ~(mask); \ 145 #define MLOG_BITS_RHS(mask) { { (mask) } } argument 157 #define mlog(mask, fmt, ...) \ argument [all …]
|
| A D | masklog.c | 24 if (__mlog_test_u64(mask, mlog_and_bits)) in mlog_mask_show() 37 __mlog_set_u64(mask, mlog_and_bits); in mlog_mask_store() 38 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 40 __mlog_set_u64(mask, mlog_not_bits); in mlog_mask_store() 41 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store() 43 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 44 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store() 63 if (*mask & ML_ERROR) { in __mlog_printk() 66 } else if (*mask & ML_NOTICE) { in __mlog_printk() 87 u64 mask; member [all …]
|
| /fs/nfsd/ |
| A D | nfs4acl.c | 71 mask |= NFS4_OWNER_MODE; in mask_from_posix() 73 mask |= NFS4_READ_MODE; in mask_from_posix() 75 mask |= NFS4_WRITE_MODE; in mask_from_posix() 80 return mask; in mask_from_posix() 86 u32 mask = 0; in deny_mask_from_posix() local 89 mask |= NFS4_READ_MODE; in deny_mask_from_posix() 91 mask |= NFS4_WRITE_MODE; in deny_mask_from_posix() 96 return mask; in deny_mask_from_posix() 185 unsigned short mask; member 199 pas->mask = 07; in summarize_posix_acl() [all …]
|
| A D | nfs3acl.c | 43 if (argp->mask & ~NFS_ACL_MASK) { in nfsd3_proc_getacl() 47 resp->mask = argp->mask; in nfsd3_proc_getacl() 49 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl() 61 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl() 139 if (xdr_stream_decode_u32(xdr, &args->mask) < 0) in nfs3svc_decode_getaclargs() 152 if (xdr_stream_decode_u32(xdr, &argp->mask) < 0) in nfs3svc_decode_setaclargs() 154 if (argp->mask & ~NFS_ACL_MASK) in nfs3svc_decode_setaclargs() 156 if (!nfs_stream_decode_acl(xdr, NULL, (argp->mask & NFS_ACL) ? in nfs3svc_decode_setaclargs() 185 if (xdr_stream_encode_u32(xdr, resp->mask) < 0) in nfs3svc_encode_getaclres() 189 resp->mask & NFS_ACL, 0)) in nfs3svc_encode_getaclres() [all …]
|
| A D | nfs2acl.c | 47 if (argp->mask & ~NFS_ACL_MASK) { in nfsacld_proc_getacl() 51 resp->mask = argp->mask; in nfsacld_proc_getacl() 57 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl() 69 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl() 200 if (xdr_stream_decode_u32(xdr, &argp->mask) < 0) in nfsaclsvc_decode_getaclargs() 213 if (xdr_stream_decode_u32(xdr, &argp->mask) < 0) in nfsaclsvc_decode_setaclargs() 215 if (argp->mask & ~NFS_ACL_MASK) in nfsaclsvc_decode_setaclargs() 217 if (!nfs_stream_decode_acl(xdr, NULL, (argp->mask & NFS_ACL) ? in nfsaclsvc_decode_setaclargs() 261 if (xdr_stream_encode_u32(xdr, resp->mask) < 0) in nfsaclsvc_encode_getaclres() 265 resp->mask & NFS_ACL, 0)) in nfsaclsvc_encode_getaclres() [all …]
|
| /fs/xfs/libxfs/ |
| A D | xfs_health.h | 206 unsigned int mask); 209 unsigned int mask); 211 #define xfs_ag_mark_sick(pag, mask) \ argument 212 xfs_group_mark_sick(pag_group(pag), (mask)) 238 return sick & mask; in xfs_fs_has_sickness() 244 unsigned int mask) in xfs_group_has_sickness() argument 249 return sick & mask; in xfs_group_has_sickness() 252 #define xfs_ag_has_sickness(pag, mask) \ argument 253 xfs_group_has_sickness(pag_group(pag), (mask)) 257 #define xfs_rtgroup_has_sickness(rtg, mask) \ argument [all …]
|
| /fs/hfs/ |
| A D | bitmap.c | 32 u32 mask, start, len, n; in hfs_find_set_zero_bits() local 50 if (!(n & mask)) in hfs_find_set_zero_bits() 60 mask = 1 << 31; in hfs_find_set_zero_bits() 62 if (!(n & mask)) in hfs_find_set_zero_bits() 76 n |= mask; in hfs_find_set_zero_bits() 79 mask >>= 1; in hfs_find_set_zero_bits() 99 mask = 1U << 31; in hfs_find_set_zero_bits() 101 if (n & mask) in hfs_find_set_zero_bits() 103 n |= mask; in hfs_find_set_zero_bits() 104 mask >>= 1; in hfs_find_set_zero_bits() [all …]
|
| /fs/xfs/scrub/ |
| A D | health.c | 136 unsigned int mask) in xchk_mark_healthy_if_clean() argument 140 sc->healthy_mask |= mask; in xchk_mark_healthy_if_clean() 151 unsigned int mask) in xchk_file_looks_zapped() argument 196 unsigned int mask = sc->sick_mask; in xchk_update_health() local 214 mask |= sc->healthy_mask; in xchk_update_health() 219 if (!mask) in xchk_update_health() 237 mask |= XFS_SICK_INO_FORGET; in xchk_update_health() 238 if (!mask) in xchk_update_health() 246 if (!mask) in xchk_update_health() 254 if (!mask) in xchk_update_health() [all …]
|
| /fs/hfsplus/ |
| A D | bitmap.c | 26 u32 mask, start, len, n; in hfsplus_block_allocate() local 57 if (!(n & mask)) in hfsplus_block_allocate() 69 mask = 1 << 31; in hfsplus_block_allocate() 71 if (!(n & mask)) in hfsplus_block_allocate() 106 n |= mask; in hfsplus_block_allocate() 109 mask >>= 1; in hfsplus_block_allocate() 144 mask = 1U << 31; in hfsplus_block_allocate() 146 if (n & mask) in hfsplus_block_allocate() 148 n |= mask; in hfsplus_block_allocate() 149 mask >>= 1; in hfsplus_block_allocate() [all …]
|
| /fs/notify/ |
| A D | fsnotify.c | 175 __u32 mask) in fsnotify_event_needs_parent() argument 180 if (mask & FS_ISDIR) in fsnotify_event_needs_parent() 198 return mask & marks_mask; in fsnotify_event_needs_parent() 203 __u32 mask) in fsnotify_object_watched() argument 283 mask |= FS_EVENT_ON_CHILD; in __fsnotify_parent() 318 if (!(mask & inode_mark->mask & ALL_FSNOTIFY_EVENTS)) in fsnotify_handle_inode_event() 342 if (mask & FS_RENAME) { in fsnotify_handle_event() 370 mask &= ~FS_EVENT_ON_CHILD; in fsnotify_handle_event() 396 if (mask & FS_MODIFY) { in send_to_group() 407 marks_mask |= mark->mask; in send_to_group() [all …]
|
| /fs/bcachefs/ |
| A D | fifo.h | 9 size_t front, back, size, mask; \ 24 (fifo)->mask = (fifo)->size \ 41 swap((l)->mask, (r)->mask); \ 59 #define fifo_peek_front(fifo) ((fifo)->data[(fifo)->front & (fifo)->mask]) 64 ? (fifo)->front : (fifo)->back) & ~(fifo)->mask) + \ 71 (fifo_full((f)) ? NULL : &(f)->data[(f)->back++ & (f)->mask]) 74 (fifo_full((f)) ? NULL : &(f)->data[--(f)->front & (f)->mask]) 96 (i) = (fifo)->data[(fifo)->front++ & (fifo)->mask]; \ 104 (i) = (fifo)->data[--(fifo)->back & (fifo)->mask]; \ 117 (_entry = (_fifo)->data[(_iter) & (_fifo)->mask], true)); \ [all …]
|
| /fs/notify/fanotify/ |
| A D | fanotify_user.c | 757 metadata.mask = event->mask & FANOTIFY_OUTGOING_EVENTS; in copy_event_to_user() 1151 mask &= ~umask; in fanotify_mark_remove_from_mask() 1155 fsn_mark->mask &= ~mask; in fanotify_mark_remove_from_mask() 1251 fsn_mark->mask |= mask; in fanotify_mark_add_to_mask() 1415 mask |= fsn_mark->mask; in fanotify_may_update_existing_mark() 1416 if (mask & FANOTIFY_PRE_CONTENT_EVENTS && mask & FAN_ONDIR) in fanotify_may_update_existing_mark() 1750 (mask & FAN_RENAME) || in fanotify_events_supported() 1824 if (upper_32_bits(mask)) in do_fanotify_mark() 1850 if (!mask) in do_fanotify_mark() 1864 if (mask & ~valid_mask) in do_fanotify_mark() [all …]
|
| A D | fanotify.c | 146 if ((old->mask & FS_ISDIR) != (new->mask & FS_ISDIR)) in fanotify_should_merge() 153 if ((old->mask & FAN_RENAME) != (new->mask & FAN_RENAME)) in fanotify_should_merge() 205 old->mask |= new->mask; in fanotify_merge() 346 marks_mask |= mark->mask; in fanotify_group_event_mask() 765 bool ondir = mask & FAN_ONDIR; in fanotify_alloc_event() 805 if (mask & FAN_RENAME) { in fanotify_alloc_event() 845 if (fanotify_is_perm_event(mask)) { in fanotify_alloc_event() 963 mask, data, data_type, dir); in fanotify_handle_event() 964 if (!mask) in fanotify_handle_event() 968 group, mask, match_mask); in fanotify_handle_event() [all …]
|
| A D | fanotify.h | 259 u32 mask; member 268 unsigned int hash, u32 mask) in fanotify_init_event() argument 273 event->mask = mask; in fanotify_init_event() 457 static inline bool fanotify_is_perm_event(u32 mask) in fanotify_is_perm_event() argument 460 mask & FANOTIFY_PERM_EVENTS; in fanotify_is_perm_event() 465 if (!(event->mask & FANOTIFY_PRE_CONTENT_EVENTS)) in fanotify_event_has_access_range() 478 return mask & FAN_FS_ERROR; in fanotify_is_error_event() 481 static inline bool fanotify_is_mnt_event(u32 mask) in fanotify_is_mnt_event() argument 483 return mask & (FAN_MNT_ATTACH | FAN_MNT_DETACH); in fanotify_is_mnt_event() 508 return !(fanotify_is_perm_event(mask) || in fanotify_is_hashed_event() [all …]
|
| /fs/ntfs3/ |
| A D | bitfunc.c | 83 u8 mask; in are_bits_set() local 89 mask = fill_mask[pos + nbits] & zero_mask[pos]; in are_bits_set() 90 return !nbits || (*map & mask) == mask; in are_bits_set() 93 mask = zero_mask[pos]; in are_bits_set() 94 if ((*map++ & mask) != mask) in are_bits_set() 122 mask = fill_mask[pos]; in are_bits_set() 123 if ((*map & mask) != mask) in are_bits_set()
|
| /fs/affs/ |
| A D | bitmap.c | 44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 69 mask = 1 << (bit & 31); in affs_free_block() 74 if (tmp & mask) in affs_free_block() 76 *data = cpu_to_be32(tmp | mask); in affs_free_block() 185 mask = ~0UL << (bit & 31); in affs_alloc_block() 189 if (tmp & mask) in affs_alloc_block() 202 mask = ~0; in affs_alloc_block() 206 bit = ffs(tmp & mask) - 1; in affs_alloc_block() 216 mask |= mask2; in affs_alloc_block() 320 if (mask) { in affs_init_bitmap() [all …]
|
| /fs/ |
| A D | signalfd.c | 263 signotset(mask); in do_signalfd4() 272 ctx->sigmask = *mask; in do_signalfd4() 297 ctx->sigmask = *mask; in do_signalfd4() 309 sigset_t mask; in SYSCALL_DEFINE4() local 313 if (copy_from_user(&mask, user_mask, sizeof(mask))) in SYSCALL_DEFINE4() 315 return do_signalfd4(ufd, &mask, flags); in SYSCALL_DEFINE4() 321 sigset_t mask; in SYSCALL_DEFINE3() local 325 if (copy_from_user(&mask, user_mask, sizeof(mask))) in SYSCALL_DEFINE3() 327 return do_signalfd4(ufd, &mask, 0); in SYSCALL_DEFINE3() 335 sigset_t mask; in do_compat_signalfd4() local [all …]
|
| /fs/notify/inotify/ |
| A D | inotify_user.c | 101 __u32 mask; in inotify_arg_to_mask() local 107 mask = (FS_UNMOUNT); in inotify_arg_to_mask() 109 mask |= FS_EVENT_ON_CHILD; in inotify_arg_to_mask() 114 return mask; in inotify_arg_to_mask() 219 inotify_event.mask = inotify_mask_to_arg(event->mask); in copy_event_to_user() 558 old_mask = fsn_mark->mask; in inotify_update_existing_watch() 560 fsn_mark->mask = 0; in inotify_update_existing_watch() 565 new_mask = fsn_mark->mask; in inotify_update_existing_watch() 730 u32, mask) in SYSCALL_DEFINE3() argument 759 if (unlikely((mask & IN_MASK_ADD) && (mask & IN_MASK_CREATE))) in SYSCALL_DEFINE3() [all …]
|
| A D | inotify.h | 8 u32 mask; member 34 __u32 mask = fsn_mark->mask & INOTIFY_USER_MASK; in inotify_mark_user_mask() local 37 mask |= IN_EXCL_UNLINK; in inotify_mark_user_mask() 39 mask |= IN_ONESHOT; in inotify_mark_user_mask() 41 return mask; in inotify_mark_user_mask() 47 u32 mask, struct inode *inode,
|
| A D | inotify_fsnotify.c | 39 if (old->mask & FS_IN_IGNORED) in event_compare() 41 if ((old->mask == new->mask) && in event_compare() 59 int inotify_handle_inode_event(struct fsnotify_mark *inode_mark, u32 mask, in inotify_handle_inode_event() argument 78 mask); in inotify_handle_inode_event() 114 if (mask & (IN_MOVE_SELF | IN_DELETE_SELF)) in inotify_handle_inode_event() 115 mask &= ~IN_ISDIR; in inotify_handle_inode_event() 119 event->mask = mask; in inotify_handle_inode_event()
|
| /fs/notify/dnotify/ |
| A D | dnotify.c | 74 if (fsn_mark->mask == new_mask) in dnotify_recalc_inode_mask() 76 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask() 97 __u32 test_mask = mask & ~FS_EVENT_ON_CHILD; in dnotify_handle_event() 100 if (!dir && !(mask & FS_ISDIR)) in dnotify_handle_event() 238 odn->dn_mask |= mask; in attach_dn() 244 dn->dn_mask = mask; in attach_dn() 268 __u32 mask; in fcntl_dirnotify() local 297 mask = convert_arg(arg); in fcntl_dirnotify() 299 error = security_path_notify(&filp->f_path, mask, in fcntl_dirnotify() 325 new_fsn_mark->mask = mask; in fcntl_dirnotify() [all …]
|
| /fs/afs/ |
| A D | dir_edit.c | 27 u32 mask; in afs_find_contig_bits() local 40 mask = (1 << nr_slots) - 1; in afs_find_contig_bits() 52 if ((bitmap & mask) == 0) { in afs_find_contig_bits() 72 u64 mask; in afs_set_contig_bits() local 74 mask = (1 << nr_slots) - 1; in afs_set_contig_bits() 75 mask <<= bit; in afs_set_contig_bits() 77 block->hdr.bitmap[0] |= (u8)(mask >> 0 * 8); in afs_set_contig_bits() 78 block->hdr.bitmap[1] |= (u8)(mask >> 1 * 8); in afs_set_contig_bits() 93 u64 mask; in afs_clear_contig_bits() local 95 mask = (1 << nr_slots) - 1; in afs_clear_contig_bits() [all …]
|
| /fs/nfs/ |
| A D | nfs3acl.c | 81 args.mask |= NFS_ACLCNT|NFS_ACL; in nfs3_get_acl() 83 args.mask |= NFS_DFACLCNT|NFS_DFACL; in nfs3_get_acl() 84 if (args.mask == 0) in nfs3_get_acl() 93 if (args.mask & NFS_ACL) in nfs3_get_acl() 95 if (args.mask & NFS_DFACL) in nfs3_get_acl() 120 if ((args.mask & res.mask) != args.mask) { in nfs3_get_acl() 133 if (res.mask & NFS_ACL) in nfs3_get_acl() 138 if (res.mask & NFS_DFACL) in nfs3_get_acl() 169 .mask = NFS_ACL, in __nfs3_proc_setacls() 194 args.mask |= NFS_DFACL; in __nfs3_proc_setacls()
|
| /fs/ext2/ |
| A D | ext2.h | 507 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ argument 509 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 511 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 513 #define EXT2_SET_COMPAT_FEATURE(sb,mask) \ argument 514 EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) 515 #define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 517 #define EXT2_SET_INCOMPAT_FEATURE(sb,mask) \ argument 519 #define EXT2_CLEAR_COMPAT_FEATURE(sb,mask) \ argument 520 EXT2_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(mask) 521 #define EXT2_CLEAR_RO_COMPAT_FEATURE(sb,mask) \ argument [all …]
|