/fs/xfs/ |
D | xfs_health.c | 96 unsigned int mask) in xfs_fs_mark_sick() argument 98 ASSERT(!(mask & ~XFS_SICK_FS_PRIMARY)); in xfs_fs_mark_sick() 99 trace_xfs_fs_mark_sick(mp, mask); in xfs_fs_mark_sick() 102 mp->m_fs_sick |= mask; in xfs_fs_mark_sick() 103 mp->m_fs_checked |= mask; in xfs_fs_mark_sick() 111 unsigned int mask) in xfs_fs_mark_healthy() argument 113 ASSERT(!(mask & ~XFS_SICK_FS_PRIMARY)); in xfs_fs_mark_healthy() 114 trace_xfs_fs_mark_healthy(mp, mask); in xfs_fs_mark_healthy() 117 mp->m_fs_sick &= ~mask; in xfs_fs_mark_healthy() 118 mp->m_fs_checked |= mask; in xfs_fs_mark_healthy() [all …]
|
/fs/ocfs2/cluster/ |
D | masklog.h | 120 #define __mlog_test_u64(mask, bits) \ argument 121 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 122 ((u64)(mask) >> 32) & bits.words[1] ) 123 #define __mlog_set_u64(mask, bits) do { \ argument 124 bits.words[0] |= (u32)(mask & 0xffffffff); \ 125 bits.words[1] |= (u64)(mask) >> 32; \ 127 #define __mlog_clear_u64(mask, bits) do { \ argument 128 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 129 bits.words[1] &= ~((u64)(mask) >> 32); \ 131 #define MLOG_BITS_RHS(mask) { \ argument [all …]
|
D | masklog.c | 22 static ssize_t mlog_mask_show(u64 mask, char *buf) in mlog_mask_show() argument 26 if (__mlog_test_u64(mask, mlog_and_bits)) in mlog_mask_show() 28 else if (__mlog_test_u64(mask, mlog_not_bits)) in mlog_mask_show() 36 static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) in mlog_mask_store() argument 39 __mlog_set_u64(mask, mlog_and_bits); in mlog_mask_store() 40 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 42 __mlog_set_u64(mask, mlog_not_bits); in mlog_mask_store() 43 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store() 45 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 46 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store() [all …]
|
/fs/nfsd/ |
D | nfs4acl.c | 68 int mask = NFS4_ANYONE_MODE; in mask_from_posix() local 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() 77 mask |= NFS4_ACE_DELETE_CHILD; in mask_from_posix() 79 mask |= NFS4_EXECUTE_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() [all …]
|
D | nfs3acl.c | 46 if (argp->mask & ~NFS_ACL_MASK) in nfsd3_proc_getacl() 48 resp->mask = argp->mask; in nfsd3_proc_getacl() 50 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl() 62 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl() 135 args->mask = ntohl(*p); p++; in nfs3svc_decode_getaclargs() 151 args->mask = ntohl(*p++); in nfs3svc_decode_setaclargs() 152 if (args->mask & ~NFS_ACL_MASK || in nfs3svc_decode_setaclargs() 158 (args->mask & NFS_ACL) ? in nfs3svc_decode_setaclargs() 162 (args->mask & NFS_DFACL) ? in nfs3svc_decode_setaclargs() 185 *p++ = htonl(resp->mask); in nfs3svc_encode_getaclres() [all …]
|
D | nfs2acl.c | 49 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() 193 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs() 209 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs() 210 if (argp->mask & ~NFS_ACL_MASK || in nfsaclsvc_decode_setaclargs() 216 (argp->mask & NFS_ACL) ? in nfsaclsvc_decode_setaclargs() 220 (argp->mask & NFS_DFACL) ? in nfsaclsvc_decode_setaclargs() 281 *p++ = htonl(resp->mask); in nfsaclsvc_encode_getaclres() [all …]
|
/fs/hfs/ |
D | bitmap.c | 32 u32 mask, start, len, n; in hfs_find_set_zero_bits() local 48 mask = (1U << 31) >> i; in hfs_find_set_zero_bits() 49 for (; i < 32; mask >>= 1, i++) { in hfs_find_set_zero_bits() 50 if (!(n & mask)) in hfs_find_set_zero_bits() 60 mask = 1 << 31; in hfs_find_set_zero_bits() 61 for (i = 0; i < 32; mask >>= 1, i++) { 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() 80 if (!--len || n & mask) in hfs_find_set_zero_bits() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_health.h | 102 void xfs_fs_mark_sick(struct xfs_mount *mp, unsigned int mask); 103 void xfs_fs_mark_healthy(struct xfs_mount *mp, unsigned int mask); 107 void xfs_rt_mark_sick(struct xfs_mount *mp, unsigned int mask); 108 void xfs_rt_mark_healthy(struct xfs_mount *mp, unsigned int mask); 112 void xfs_ag_mark_sick(struct xfs_perag *pag, unsigned int mask); 113 void xfs_ag_mark_healthy(struct xfs_perag *pag, unsigned int mask); 117 void xfs_inode_mark_sick(struct xfs_inode *ip, unsigned int mask); 118 void xfs_inode_mark_healthy(struct xfs_inode *ip, unsigned int mask); 127 xfs_fs_has_sickness(struct xfs_mount *mp, unsigned int mask) in xfs_fs_has_sickness() argument 132 return sick & mask; in xfs_fs_has_sickness() [all …]
|
D | xfs_rtbitmap.c | 110 xfs_rtword_t mask; /* mask of relevant bits for value */ in xfs_rtfind_back() local 146 mask = (((xfs_rtword_t)1 << (bit - firstbit + 1)) - 1) << in xfs_rtfind_back() 152 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() 241 mask = (((xfs_rtword_t)1 << (len - i)) - 1) << firstbit; in xfs_rtfind_back() 245 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() 285 xfs_rtword_t mask; /* mask of relevant bits for value */ in xfs_rtfind_forw() local 321 mask = (((xfs_rtword_t)1 << (lastbit - bit)) - 1) << bit; in xfs_rtfind_forw() 326 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_forw() 411 mask = ((xfs_rtword_t)1 << lastbit) - 1; in xfs_rtfind_forw() 415 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_forw() [all …]
|
/fs/hfsplus/ |
D | bitmap.c | 26 u32 mask, start, len, n; in hfsplus_block_allocate() local 55 mask = (1U << 31) >> i; in hfsplus_block_allocate() 56 for (; i < 32; mask >>= 1, i++) { in hfsplus_block_allocate() 57 if (!(n & mask)) in hfsplus_block_allocate() 69 mask = 1 << 31; in hfsplus_block_allocate() 70 for (i = 0; i < 32; mask >>= 1, i++) { 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() 110 if (!--len || n & mask) in hfsplus_block_allocate() [all …]
|
/fs/notify/fanotify/ |
D | fanotify_user.c | 92 if (fanotify_is_perm_event(FANOTIFY_E(fsn_event)->mask)) in get_one_event() 275 metadata.mask = event->mask & FANOTIFY_OUTGOING_EVENTS; in copy_event_to_user() 298 if (fanotify_is_perm_event(event->mask)) in copy_event_to_user() 387 if (!fanotify_is_perm_event(FANOTIFY_E(kevent)->mask)) { in fanotify_read() 473 if (!(FANOTIFY_E(fsn_event)->mask & FANOTIFY_PERM_EVENTS)) { in fanotify_release() 531 struct path *path, unsigned int flags, __u64 mask, in fanotify_find_path() argument 576 ret = security_path_notify(path, mask, obj_type); in fanotify_find_path() 585 __u32 mask, in fanotify_mark_remove_from_mask() argument 593 oldmask = fsn_mark->mask; in fanotify_mark_remove_from_mask() 594 fsn_mark->mask &= ~mask; in fanotify_mark_remove_from_mask() [all …]
|
D | fanotify.c | 45 return (old->mask & FS_ISDIR) == (new->mask & FS_ISDIR) && in should_merge() 67 if (fanotify_is_perm_event(new->mask)) in fanotify_merge() 72 FANOTIFY_E(test_event)->mask |= new->mask; in fanotify_merge() 180 !(mark->mask & FS_EVENT_ON_CHILD))) in fanotify_group_event_mask() 183 marks_mask |= mark->mask; in fanotify_group_event_mask() 280 struct inode *inode, u32 mask, in fanotify_alloc_event() argument 286 struct inode *id = fanotify_fid_inode(inode, mask, data, data_type); in fanotify_alloc_event() 302 if (fanotify_is_perm_event(mask)) { in fanotify_alloc_event() 318 event->mask = mask; in fanotify_alloc_event() 376 u32 mask, const void *data, int data_type, in fanotify_handle_event() argument [all …]
|
/fs/notify/inotify/ |
D | inotify_user.c | 80 __u32 mask; in inotify_arg_to_mask() local 86 mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD | FS_UNMOUNT); in inotify_arg_to_mask() 89 mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT | IN_EXCL_UNLINK)); in inotify_arg_to_mask() 91 return mask; in inotify_arg_to_mask() 94 static inline u32 inotify_mask_to_arg(__u32 mask) in inotify_mask_to_arg() argument 96 return mask & (IN_ALL_EVENTS | IN_ISDIR | IN_UNMOUNT | IN_IGNORED | in inotify_mask_to_arg() 182 inotify_event.mask = inotify_mask_to_arg(event->mask); in copy_event_to_user() 336 unsigned int flags, __u64 mask) in inotify_find_inode() argument 349 error = security_path_notify(path, mask, in inotify_find_inode() 510 __u32 mask; in inotify_update_existing_watch() local [all …]
|
D | inotify_fsnotify.c | 39 if (old->mask & FS_IN_IGNORED) in event_compare() 41 if ((old->mask == new->mask) && in event_compare() 60 u32 mask, const void *data, int data_type, in inotify_handle_event() argument 75 if ((inode_mark->mask & FS_EXCL_UNLINK) && in inotify_handle_event() 88 mask); in inotify_handle_event() 117 if (mask & (IN_MOVE_SELF | IN_DELETE_SELF)) in inotify_handle_event() 118 mask &= ~IN_ISDIR; in inotify_handle_event() 122 event->mask = mask; in inotify_handle_event() 135 if (inode_mark->mask & IN_ONESHOT) in inotify_handle_event()
|
/fs/afs/ |
D | dir_edit.c | 26 u32 mask; in afs_find_contig_bits() local 39 mask = (1 << nr_slots) - 1; in afs_find_contig_bits() 51 if ((bitmap & mask) == 0) { in afs_find_contig_bits() 71 u64 mask; in afs_set_contig_bits() local 73 mask = (1 << nr_slots) - 1; in afs_set_contig_bits() 74 mask <<= bit; in afs_set_contig_bits() 76 block->hdr.bitmap[0] |= (u8)(mask >> 0 * 8); in afs_set_contig_bits() 77 block->hdr.bitmap[1] |= (u8)(mask >> 1 * 8); in afs_set_contig_bits() 78 block->hdr.bitmap[2] |= (u8)(mask >> 2 * 8); in afs_set_contig_bits() 79 block->hdr.bitmap[3] |= (u8)(mask >> 3 * 8); in afs_set_contig_bits() [all …]
|
/fs/affs/ |
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() 80 *(__be32 *)bh->b_data = cpu_to_be32(tmp - mask); in affs_free_block() 122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 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() [all …]
|
/fs/notify/ |
D | fsnotify.c | 146 int __fsnotify_parent(const struct path *path, struct dentry *dentry, __u32 mask) in __fsnotify_parent() argument 163 } else if (p_inode->i_fsnotify_mask & mask & ALL_FSNOTIFY_EVENTS) { in __fsnotify_parent() 168 mask |= FS_EVENT_ON_CHILD; in __fsnotify_parent() 172 ret = fsnotify(p_inode, mask, path, FSNOTIFY_EVENT_PATH, in __fsnotify_parent() 175 ret = fsnotify(p_inode, mask, dentry->d_inode, FSNOTIFY_EVENT_INODE, in __fsnotify_parent() 187 __u32 mask, const void *data, in send_to_group() argument 193 __u32 test_mask = (mask & ALL_FSNOTIFY_EVENTS); in send_to_group() 203 if (mask & FS_MODIFY) { in send_to_group() 221 marks_mask |= mark->mask; in send_to_group() 228 __func__, group, to_tell, mask, marks_mask, marks_ignored_mask, in send_to_group() [all …]
|
/fs/ |
D | signalfd.c | 263 static int do_signalfd4(int ufd, sigset_t *mask, int flags) in do_signalfd4() argument 274 sigdelsetmask(mask, sigmask(SIGKILL) | sigmask(SIGSTOP)); in do_signalfd4() 275 signotset(mask); in do_signalfd4() 282 ctx->sigmask = *mask; in do_signalfd4() 302 ctx->sigmask = *mask; in do_signalfd4() 315 sigset_t mask; in SYSCALL_DEFINE4() local 318 copy_from_user(&mask, user_mask, sizeof(mask))) in SYSCALL_DEFINE4() 320 return do_signalfd4(ufd, &mask, flags); in SYSCALL_DEFINE4() 326 sigset_t mask; in SYSCALL_DEFINE3() local 329 copy_from_user(&mask, user_mask, sizeof(mask))) in SYSCALL_DEFINE3() [all …]
|
/fs/notify/dnotify/ |
D | dnotify.c | 58 if (fsn_mark->mask == new_mask) in dnotify_recalc_inode_mask() 60 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask() 75 u32 mask, const void *data, int data_type, in dnotify_handle_event() argument 84 __u32 test_mask = mask & ~FS_EVENT_ON_CHILD; in dnotify_handle_event() 219 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument 228 odn->dn_mask |= mask; in attach_dn() 234 dn->dn_mask = mask; in attach_dn() 258 __u32 mask; in fcntl_dirnotify() local 287 mask = convert_arg(arg); in fcntl_dirnotify() 289 error = security_path_notify(&filp->f_path, mask, in fcntl_dirnotify() [all …]
|
/fs/xfs/scrub/ |
D | health.c | 178 unsigned int mask = 0; in xchk_ag_btree_healthy_enough() local 191 mask = XFS_SICK_AG_BNOBT; in xchk_ag_btree_healthy_enough() 196 mask = XFS_SICK_AG_CNTBT; in xchk_ag_btree_healthy_enough() 201 mask = XFS_SICK_AG_INOBT; in xchk_ag_btree_healthy_enough() 206 mask = XFS_SICK_AG_FINOBT; in xchk_ag_btree_healthy_enough() 211 mask = XFS_SICK_AG_RMAPBT; in xchk_ag_btree_healthy_enough() 216 mask = XFS_SICK_AG_REFCNTBT; in xchk_ag_btree_healthy_enough() 223 if (xfs_ag_has_sickness(pag, mask)) { in xchk_ag_btree_healthy_enough()
|
/fs/nfs/ |
D | nfs3acl.c | 79 args.mask |= NFS_ACLCNT|NFS_ACL; in nfs3_get_acl() 81 args.mask |= NFS_DFACLCNT|NFS_DFACL; in nfs3_get_acl() 82 if (args.mask == 0) in nfs3_get_acl() 91 if (args.mask & NFS_ACL) in nfs3_get_acl() 93 if (args.mask & NFS_DFACL) in nfs3_get_acl() 117 if ((args.mask & res.mask) != args.mask) { in nfs3_get_acl() 130 if (res.mask & NFS_ACL) in nfs3_get_acl() 135 if (res.mask & NFS_DFACL) in nfs3_get_acl() 166 .mask = NFS_ACL, in __nfs3_proc_setacls() 191 args.mask |= NFS_DFACL; in __nfs3_proc_setacls()
|
/fs/ext2/ |
D | ext2.h | 513 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ argument 514 ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) 515 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 516 ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) ) 517 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 518 ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) ) 519 #define EXT2_SET_COMPAT_FEATURE(sb,mask) \ argument 520 EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) 521 #define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 522 EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask) [all …]
|
/fs/coda/ |
D | cache.c | 31 void coda_cache_enter(struct inode *inode, int mask) in coda_cache_enter() argument 39 cii->c_cached_perm = mask; in coda_cache_enter() 41 cii->c_cached_perm |= mask; in coda_cache_enter() 62 int coda_cache_check(struct inode *inode, int mask) in coda_cache_check() argument 68 hit = (mask & cii->c_cached_perm) == mask && in coda_cache_check()
|
/fs/ceph/ |
D | export.c | 135 int mask; in __lookup_inode() local 142 mask = CEPH_STAT_CAP_INODE; in __lookup_inode() 144 mask |= CEPH_CAP_XATTR_SHARED; in __lookup_inode() 145 req->r_args.lookupino.mask = cpu_to_le32(mask); in __lookup_inode() 192 int mask; in __snapfh_to_dentry() local 217 mask = CEPH_STAT_CAP_INODE; in __snapfh_to_dentry() 219 mask |= CEPH_CAP_XATTR_SHARED; in __snapfh_to_dentry() 220 req->r_args.lookupino.mask = cpu_to_le32(mask); in __snapfh_to_dentry() 293 int mask; in __get_parent() local 311 mask = CEPH_STAT_CAP_INODE; in __get_parent() [all …]
|
/fs/orangefs/ |
D | orangefs-debugfs.c | 685 static void debug_mask_to_string(void *mask, int type) in debug_mask_to_string() argument 710 if (check_amalgam_keyword(mask, type)) in debug_mask_to_string() 716 do_c_string(mask, i); in debug_mask_to_string() 718 do_k_string(mask, i); in debug_mask_to_string() 740 __u64 *mask = (__u64 *) k_mask; in do_k_string() local 745 if (*mask & s_kmod_keyword_mask_map[index].mask_val) { in do_k_string() 766 struct client_debug_mask *mask = (struct client_debug_mask *) c_mask; in do_c_string() local 771 if ((mask->mask1 & cdm_array[index].mask1) || in do_c_string() 772 (mask->mask2 & cdm_array[index].mask2)) { in do_c_string() 805 static int check_amalgam_keyword(void *mask, int type) in check_amalgam_keyword() argument [all …]
|