/fs/xfs/ |
D | xfs_health.c | 94 unsigned int mask) in xfs_fs_mark_sick() argument 96 ASSERT(!(mask & ~XFS_SICK_FS_PRIMARY)); in xfs_fs_mark_sick() 97 trace_xfs_fs_mark_sick(mp, mask); in xfs_fs_mark_sick() 100 mp->m_fs_sick |= mask; in xfs_fs_mark_sick() 101 mp->m_fs_checked |= mask; in xfs_fs_mark_sick() 109 unsigned int mask) in xfs_fs_mark_healthy() argument 111 ASSERT(!(mask & ~XFS_SICK_FS_PRIMARY)); in xfs_fs_mark_healthy() 112 trace_xfs_fs_mark_healthy(mp, mask); in xfs_fs_mark_healthy() 115 mp->m_fs_sick &= ~mask; in xfs_fs_mark_healthy() 116 mp->m_fs_checked |= mask; in xfs_fs_mark_healthy() [all …]
|
/fs/ocfs2/cluster/ |
D | masklog.h | 118 #define __mlog_test_u64(mask, bits) \ argument 119 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 120 ((u64)(mask) >> 32) & bits.words[1] ) 121 #define __mlog_set_u64(mask, bits) do { \ argument 122 bits.words[0] |= (u32)(mask & 0xffffffff); \ 123 bits.words[1] |= (u64)(mask) >> 32; \ 125 #define __mlog_clear_u64(mask, bits) do { \ argument 126 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 127 bits.words[1] &= ~((u64)(mask) >> 32); \ 129 #define MLOG_BITS_RHS(mask) { \ argument [all …]
|
D | masklog.c | 20 static ssize_t mlog_mask_show(u64 mask, char *buf) in mlog_mask_show() argument 24 if (__mlog_test_u64(mask, mlog_and_bits)) in mlog_mask_show() 26 else if (__mlog_test_u64(mask, mlog_not_bits)) in mlog_mask_show() 34 static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) in mlog_mask_store() argument 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() [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 | 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() 137 if (xdr_stream_decode_u32(xdr, &args->mask) < 0) in nfs3svc_decode_getaclargs() 150 if (xdr_stream_decode_u32(xdr, &argp->mask) < 0) in nfs3svc_decode_setaclargs() 152 if (argp->mask & ~NFS_ACL_MASK) in nfs3svc_decode_setaclargs() 154 if (!nfs_stream_decode_acl(xdr, NULL, (argp->mask & NFS_ACL) ? in nfs3svc_decode_setaclargs() 157 if (!nfs_stream_decode_acl(xdr, NULL, (argp->mask & NFS_DFACL) ? in nfs3svc_decode_setaclargs() 187 if (xdr_stream_encode_u32(xdr, resp->mask) < 0) in nfs3svc_encode_getaclres() [all …]
|
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() 198 if (xdr_stream_decode_u32(xdr, &argp->mask) < 0) in nfsaclsvc_decode_getaclargs() 211 if (xdr_stream_decode_u32(xdr, &argp->mask) < 0) in nfsaclsvc_decode_setaclargs() 213 if (argp->mask & ~NFS_ACL_MASK) in nfsaclsvc_decode_setaclargs() 215 if (!nfs_stream_decode_acl(xdr, NULL, (argp->mask & NFS_ACL) ? in nfsaclsvc_decode_setaclargs() 218 if (!nfs_stream_decode_acl(xdr, NULL, (argp->mask & NFS_DFACL) ? in nfsaclsvc_decode_setaclargs() 259 if (xdr_stream_encode_u32(xdr, resp->mask) < 0) 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/notify/ |
D | fsnotify.c | 147 __u32 mask) in fsnotify_event_needs_parent() argument 152 if (mask & FS_ISDIR) in fsnotify_event_needs_parent() 169 return mask & marks_mask; in fsnotify_event_needs_parent() 180 int __fsnotify_parent(struct dentry *dentry, __u32 mask, const void *data, in __fsnotify_parent() argument 204 parent_needed = fsnotify_event_needs_parent(inode, mnt, mask); in __fsnotify_parent() 219 parent_interested = mask & p_mask & ALL_FSNOTIFY_EVENTS; in __fsnotify_parent() 228 mask |= FS_EVENT_ON_CHILD; in __fsnotify_parent() 232 ret = fsnotify(mask, data, data_type, p_inode, file_name, inode, 0); in __fsnotify_parent() 244 u32 mask, const void *data, int data_type, in fsnotify_handle_inode_event() argument 255 if ((inode_mark->mask & FS_EXCL_UNLINK) && in fsnotify_handle_inode_event() [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 | 141 (event->mask & FAN_ONDIR)) { in fanotify_event_info_len() 210 if (fanotify_is_perm_event(event->mask)) in get_one_event() 212 if (fanotify_is_hashed_event(event->mask)) in get_one_event() 474 (event->mask & FAN_ONDIR)) { in copy_info_records_to_user() 483 } else if ((event->mask & ALL_FSNOTIFY_DIRENT_EVENTS) || in copy_info_records_to_user() 484 (event->mask & FAN_ONDIR)) { in copy_info_records_to_user() 545 metadata.mask = event->mask & FANOTIFY_OUTGOING_EVENTS; in copy_event_to_user() 611 if (fanotify_is_perm_event(event->mask)) in copy_event_to_user() 711 if (!fanotify_is_perm_event(event->mask)) { in fanotify_read() 801 if (!(event->mask & FANOTIFY_PERM_EVENTS)) { in fanotify_release() [all …]
|
D | fanotify.c | 131 if ((old->mask & FS_ISDIR) != (new->mask & FS_ISDIR)) in fanotify_should_merge() 171 if (fanotify_is_perm_event(new->mask)) in fanotify_merge() 178 old->mask |= new->mask; in fanotify_merge() 297 if (event_mask & FS_ISDIR && !(mark->mask & FS_ISDIR)) in fanotify_group_event_mask() 305 !(mark->mask & FS_EVENT_ON_CHILD)) in fanotify_group_event_mask() 308 marks_mask |= mark->mask; in fanotify_group_event_mask() 567 u32 mask, const void *data, in fanotify_alloc_event() argument 574 struct inode *id = fanotify_fid_inode(mask, data, data_type, dir); in fanotify_alloc_event() 575 struct inode *dirid = fanotify_dfid_inode(mask, data, data_type, dir); in fanotify_alloc_event() 582 bool ondir = mask & FAN_ONDIR; in fanotify_alloc_event() [all …]
|
D | fanotify.h | 155 u32 mask; member 164 unsigned int hash, u32 mask) in fanotify_init_event() argument 169 event->mask = mask; in fanotify_init_event() 279 static inline bool fanotify_is_perm_event(u32 mask) in fanotify_is_perm_event() argument 282 mask & FANOTIFY_PERM_EVENTS; in fanotify_is_perm_event() 316 static inline bool fanotify_is_hashed_event(u32 mask) in fanotify_is_hashed_event() argument 318 return !fanotify_is_perm_event(mask) && !(mask & FS_Q_OVERFLOW); in fanotify_is_hashed_event()
|
/fs/notify/inotify/ |
D | inotify_user.c | 94 __u32 mask; in inotify_arg_to_mask() local 100 mask = (FS_IN_IGNORED | FS_UNMOUNT); in inotify_arg_to_mask() 102 mask |= FS_EVENT_ON_CHILD; in inotify_arg_to_mask() 105 mask |= (arg & INOTIFY_USER_MASK); in inotify_arg_to_mask() 107 return mask; in inotify_arg_to_mask() 110 static inline u32 inotify_mask_to_arg(__u32 mask) in inotify_mask_to_arg() argument 112 return mask & (IN_ALL_EVENTS | IN_ISDIR | IN_UNMOUNT | IN_IGNORED | in inotify_mask_to_arg() 197 inotify_event.mask = inotify_mask_to_arg(event->mask); in copy_event_to_user() 351 unsigned int flags, __u64 mask) in inotify_find_inode() argument 364 error = security_path_notify(path, mask, in inotify_find_inode() [all …]
|
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() 132 if (inode_mark->mask & IN_ONESHOT) in inotify_handle_inode_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/ntfs3/ |
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/ |
D | signalfd.c | 252 static int do_signalfd4(int ufd, sigset_t *mask, int flags) in do_signalfd4() argument 263 sigdelsetmask(mask, sigmask(SIGKILL) | sigmask(SIGSTOP)); in do_signalfd4() 264 signotset(mask); in do_signalfd4() 271 ctx->sigmask = *mask; in do_signalfd4() 291 ctx->sigmask = *mask; in do_signalfd4() 304 sigset_t mask; in SYSCALL_DEFINE4() local 308 if (copy_from_user(&mask, user_mask, sizeof(mask))) in SYSCALL_DEFINE4() 310 return do_signalfd4(ufd, &mask, flags); in SYSCALL_DEFINE4() 316 sigset_t mask; in SYSCALL_DEFINE3() local 320 if (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() 73 static int dnotify_handle_event(struct fsnotify_mark *inode_mark, u32 mask, in dnotify_handle_event() argument 81 __u32 test_mask = mask & ~FS_EVENT_ON_CHILD; in dnotify_handle_event() 84 if (!dir && !(mask & FS_ISDIR)) in dnotify_handle_event() 213 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument 222 odn->dn_mask |= mask; in attach_dn() 228 dn->dn_mask = mask; in attach_dn() 252 __u32 mask; in fcntl_dirnotify() local 281 mask = convert_arg(arg); in fcntl_dirnotify() [all …]
|
/fs/xfs/scrub/ |
D | health.c | 180 unsigned int mask = 0; in xchk_ag_btree_healthy_enough() local 193 mask = XFS_SICK_AG_BNOBT; in xchk_ag_btree_healthy_enough() 198 mask = XFS_SICK_AG_CNTBT; in xchk_ag_btree_healthy_enough() 203 mask = XFS_SICK_AG_INOBT; in xchk_ag_btree_healthy_enough() 208 mask = XFS_SICK_AG_FINOBT; in xchk_ag_btree_healthy_enough() 213 mask = XFS_SICK_AG_RMAPBT; in xchk_ag_btree_healthy_enough() 218 mask = XFS_SICK_AG_REFCNTBT; in xchk_ag_btree_healthy_enough() 225 if (xfs_ag_has_sickness(pag, mask)) { in xchk_ag_btree_healthy_enough()
|
/fs/nfs/ |
D | nfs3acl.c | 82 args.mask |= NFS_ACLCNT|NFS_ACL; in nfs3_get_acl() 84 args.mask |= NFS_DFACLCNT|NFS_DFACL; in nfs3_get_acl() 85 if (args.mask == 0) in nfs3_get_acl() 94 if (args.mask & NFS_ACL) in nfs3_get_acl() 96 if (args.mask & NFS_DFACL) in nfs3_get_acl() 121 if ((args.mask & res.mask) != args.mask) { in nfs3_get_acl() 134 if (res.mask & NFS_ACL) in nfs3_get_acl() 139 if (res.mask & NFS_DFACL) in nfs3_get_acl() 170 .mask = NFS_ACL, in __nfs3_proc_setacls() 195 args.mask |= NFS_DFACL; in __nfs3_proc_setacls()
|
/fs/ext2/ |
D | ext2.h | 499 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ argument 500 ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) 501 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 502 ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) ) 503 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 504 ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) ) 505 #define EXT2_SET_COMPAT_FEATURE(sb,mask) \ argument 506 EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) 507 #define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 508 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()
|