/fs/ocfs2/cluster/ |
D | masklog.h | 134 #define __mlog_test_u64(mask, bits) \ argument 135 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 136 ((u64)(mask) >> 32) & bits.words[1] ) 137 #define __mlog_set_u64(mask, bits) do { \ argument 138 bits.words[0] |= (u32)(mask & 0xffffffff); \ 139 bits.words[1] |= (u64)(mask) >> 32; \ 141 #define __mlog_clear_u64(mask, bits) do { \ argument 142 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 143 bits.words[1] &= ~((u64)(mask) >> 32); \ 145 #define MLOG_BITS_RHS(mask) { \ argument [all …]
|
D | masklog.c | 36 static ssize_t mlog_mask_show(u64 mask, char *buf) in mlog_mask_show() argument 40 if (__mlog_test_u64(mask, mlog_and_bits)) in mlog_mask_show() 42 else if (__mlog_test_u64(mask, mlog_not_bits)) in mlog_mask_show() 50 static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) in mlog_mask_store() argument 53 __mlog_set_u64(mask, mlog_and_bits); in mlog_mask_store() 54 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 56 __mlog_set_u64(mask, mlog_not_bits); in mlog_mask_store() 57 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store() 59 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 60 __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 | 44 if (argp->mask & ~NFS_ACL_MASK) in nfsd3_proc_getacl() 46 resp->mask = argp->mask; in nfsd3_proc_getacl() 48 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl() 60 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl() 132 args->mask = ntohl(*p); p++; in nfs3svc_decode_getaclargs() 148 args->mask = ntohl(*p++); in nfs3svc_decode_setaclargs() 149 if (args->mask & ~NFS_ACL_MASK || in nfs3svc_decode_setaclargs() 155 (args->mask & NFS_ACL) ? in nfs3svc_decode_setaclargs() 159 (args->mask & NFS_DFACL) ? in nfs3svc_decode_setaclargs() 182 *p++ = htonl(resp->mask); in nfs3svc_encode_getaclres() [all …]
|
D | nfs2acl.c | 47 if (argp->mask & ~NFS_ACL_MASK) in nfsacld_proc_getacl() 49 resp->mask = argp->mask; in nfsacld_proc_getacl() 55 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl() 67 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl() 188 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs() 204 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs() 205 if (argp->mask & ~NFS_ACL_MASK || in nfsaclsvc_decode_setaclargs() 211 (argp->mask & NFS_ACL) ? in nfsaclsvc_decode_setaclargs() 215 (argp->mask & NFS_DFACL) ? in nfsaclsvc_decode_setaclargs() 274 *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/hfsplus/ |
D | bitmap.c | 25 u32 mask, start, len, n; in hfsplus_block_allocate() local 54 mask = (1U << 31) >> i; in hfsplus_block_allocate() 55 for (; i < 32; mask >>= 1, i++) { in hfsplus_block_allocate() 56 if (!(n & mask)) in hfsplus_block_allocate() 68 mask = 1 << 31; in hfsplus_block_allocate() 69 for (i = 0; i < 32; mask >>= 1, i++) { in hfsplus_block_allocate() 70 if (!(n & mask)) in hfsplus_block_allocate() 105 n |= mask; in hfsplus_block_allocate() 108 mask >>= 1; in hfsplus_block_allocate() 109 if (!--len || n & mask) in hfsplus_block_allocate() [all …]
|
/fs/notify/ |
D | fsnotify.c | 89 int __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask) in __fsnotify_parent() argument 106 else if (p_inode->i_fsnotify_mask & mask) { in __fsnotify_parent() 111 mask |= FS_EVENT_ON_CHILD; in __fsnotify_parent() 115 ret = fsnotify(p_inode, mask, path, FSNOTIFY_EVENT_PATH, in __fsnotify_parent() 118 ret = fsnotify(p_inode, mask, dentry->d_inode, FSNOTIFY_EVENT_INODE, in __fsnotify_parent() 132 __u32 mask, void *data, in send_to_group() argument 146 if (mask & FS_MODIFY) { in send_to_group() 158 inode_test_mask = (mask & ~FS_EVENT_ON_CHILD); in send_to_group() 159 inode_test_mask &= inode_mark->mask; in send_to_group() 165 vfsmount_test_mask = (mask & ~FS_EVENT_ON_CHILD); in send_to_group() [all …]
|
D | mark.c | 120 new_mask |= mark->mask; in fsnotify_recalc_mask() 243 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask) in fsnotify_set_mark_mask_locked() argument 247 mark->mask = mask; in fsnotify_set_mark_mask_locked() 250 fsnotify_set_inode_mark_mask_locked(mark, mask); in fsnotify_set_mark_mask_locked() 253 void fsnotify_set_mark_ignored_mask_locked(struct fsnotify_mark *mark, __u32 mask) in fsnotify_set_mark_ignored_mask_locked() argument 257 mark->ignored_mask = mask; in fsnotify_set_mark_ignored_mask_locked() 372 fsnotify_set_mark_mask_locked(mark, mark->mask); in fsnotify_add_mark_locked() 480 new->mask = old->mask; in fsnotify_duplicate_mark()
|
/fs/notify/fanotify/ |
D | fanotify_user.c | 131 metadata->mask = fsn_event->mask & FAN_ALL_OUTGOING_EVENTS; in fill_event_metadata() 133 if (unlikely(fsn_event->mask & FAN_Q_OVERFLOW)) in fill_event_metadata() 224 if (event->mask & FAN_ALL_PERM_EVENTS) in copy_event_to_user() 301 if (!(kevent->mask & FAN_ALL_PERM_EVENTS)) { in fanotify_read() 393 if (!(fsn_event->mask & FAN_ALL_PERM_EVENTS)) in fanotify_release() 499 __u32 mask, in fanotify_mark_remove_from_mask() argument 507 __u32 tmask = fsn_mark->mask & ~mask; in fanotify_mark_remove_from_mask() 512 oldmask = fsn_mark->mask; in fanotify_mark_remove_from_mask() 515 __u32 tmask = fsn_mark->ignored_mask & ~mask; in fanotify_mark_remove_from_mask() 521 *destroy = !(fsn_mark->mask | fsn_mark->ignored_mask); in fanotify_mark_remove_from_mask() [all …]
|
D | fanotify.c | 44 if (event->mask & FAN_ALL_PERM_EVENTS) in fanotify_merge() 58 test_event->mask |= event->mask; in fanotify_merge() 117 (inode_mark->mask & FS_EVENT_ON_CHILD))) { in fanotify_should_send_event() 118 marks_mask |= inode_mark->mask; in fanotify_should_send_event() 123 marks_mask |= vfsmnt_mark->mask; in fanotify_should_send_event() 138 struct fanotify_event_info *fanotify_alloc_event(struct inode *inode, u32 mask, in fanotify_alloc_event() argument 144 if (mask & FAN_ALL_PERM_EVENTS) { in fanotify_alloc_event() 160 fsnotify_init_event(&event->fse, inode, mask); in fanotify_alloc_event() 176 u32 mask, void *data, int data_type, in fanotify_handle_event() argument 194 if (!fanotify_should_send_event(inode_mark, fanotify_mark, mask, data, in fanotify_handle_event() [all …]
|
/fs/affs/ |
D | bitmap.c | 43 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 68 mask = 1 << (bit & 31); in affs_free_block() 73 if (tmp & mask) in affs_free_block() 75 *data = cpu_to_be32(tmp | mask); in affs_free_block() 79 *(__be32 *)bh->b_data = cpu_to_be32(tmp - mask); in affs_free_block() 121 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 184 mask = ~0UL << (bit & 31); in affs_alloc_block() 188 if (tmp & mask) in affs_alloc_block() 201 mask = ~0; in affs_alloc_block() 205 bit = ffs(tmp & mask) - 1; in affs_alloc_block() [all …]
|
/fs/notify/inotify/ |
D | inotify_user.c | 91 __u32 mask; in inotify_arg_to_mask() local 97 mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD | FS_UNMOUNT); in inotify_arg_to_mask() 100 mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT | IN_EXCL_UNLINK)); in inotify_arg_to_mask() 102 return mask; in inotify_arg_to_mask() 105 static inline u32 inotify_mask_to_arg(__u32 mask) in inotify_mask_to_arg() argument 107 return mask & (IN_ALL_EVENTS | IN_ISDIR | IN_UNMOUNT | IN_IGNORED | in inotify_mask_to_arg() 193 inotify_event.mask = inotify_mask_to_arg(fsn_event->mask); in copy_event_to_user() 523 __u32 mask; in inotify_update_existing_watch() local 527 mask = inotify_arg_to_mask(arg); in inotify_update_existing_watch() 537 old_mask = fsn_mark->mask; in inotify_update_existing_watch() [all …]
|
D | inotify_fsnotify.c | 44 if (old_fsn->mask & FS_IN_IGNORED) in event_compare() 48 if ((old_fsn->mask == new_fsn->mask) && in event_compare() 69 u32 mask, void *data, int data_type, in inotify_handle_event() argument 81 if ((inode_mark->mask & FS_EXCL_UNLINK) && in inotify_handle_event() 94 mask); in inotify_handle_event() 104 fsnotify_init_event(fsn_event, inode, mask); in inotify_handle_event() 117 if (inode_mark->mask & IN_ONESHOT) in inotify_handle_event()
|
/fs/xfs/libxfs/ |
D | xfs_rtbitmap.c | 99 xfs_rtword_t mask; /* mask of relevant bits for value */ in xfs_rtfind_back() local 135 mask = (((xfs_rtword_t)1 << (bit - firstbit + 1)) - 1) << in xfs_rtfind_back() 141 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() 230 mask = (((xfs_rtword_t)1 << (len - i)) - 1) << firstbit; in xfs_rtfind_back() 234 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() 274 xfs_rtword_t mask; /* mask of relevant bits for value */ in xfs_rtfind_forw() local 310 mask = (((xfs_rtword_t)1 << (lastbit - bit)) - 1) << bit; in xfs_rtfind_forw() 315 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_forw() 400 mask = ((xfs_rtword_t)1 << lastbit) - 1; in xfs_rtfind_forw() 404 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_forw() [all …]
|
/fs/ext2/ |
D | ext2.h | 514 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ argument 515 ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) 516 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 517 ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) ) 518 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 519 ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) ) 520 #define EXT2_SET_COMPAT_FEATURE(sb,mask) \ argument 521 EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) 522 #define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 523 EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask) [all …]
|
/fs/btrfs/ |
D | extent_io.h | 200 gfp_t mask); 207 struct extent_state **cached, gfp_t mask); 225 unsigned bits, gfp_t mask); 227 unsigned bits, gfp_t mask, 231 struct extent_state **cached, gfp_t mask); 233 unsigned bits, gfp_t mask); 235 unsigned bits, gfp_t mask, 239 struct extent_state **cached_state, gfp_t mask); 241 struct extent_state **cached_state, gfp_t mask); 243 struct extent_state **cached_state, gfp_t mask); [all …]
|
/fs/coda/ |
D | cache.c | 30 void coda_cache_enter(struct inode *inode, int mask) in coda_cache_enter() argument 38 cii->c_cached_perm = mask; in coda_cache_enter() 40 cii->c_cached_perm |= mask; in coda_cache_enter() 61 int coda_cache_check(struct inode *inode, int mask) in coda_cache_check() argument 67 hit = (mask & cii->c_cached_perm) == mask && in coda_cache_check()
|
/fs/notify/dnotify/ |
D | dnotify.c | 63 old_mask = fsn_mark->mask; in dnotify_recalc_inode_mask() 88 u32 mask, void *data, int data_type, in dnotify_handle_event() argument 95 __u32 test_mask = mask & ~FS_EVENT_ON_CHILD; in dnotify_handle_event() 228 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument 237 odn->dn_mask |= mask; in attach_dn() 243 dn->dn_mask = mask; in attach_dn() 267 __u32 mask; in fcntl_dirnotify() local 307 mask = convert_arg(arg); in fcntl_dirnotify() 312 new_fsn_mark->mask = mask; in fcntl_dirnotify() 356 error = attach_dn(dn, dn_mark, id, fd, filp, mask); in fcntl_dirnotify()
|
/fs/nfs/ |
D | nfs3acl.c | 46 args.mask |= NFS_ACLCNT|NFS_ACL; in nfs3_get_acl() 48 args.mask |= NFS_DFACLCNT|NFS_DFACL; in nfs3_get_acl() 49 if (args.mask == 0) in nfs3_get_acl() 78 if ((args.mask & res.mask) != args.mask) { in nfs3_get_acl() 91 if (res.mask & NFS_ACL) in nfs3_get_acl() 96 if (res.mask & NFS_DFACL) in nfs3_get_acl() 125 .mask = NFS_ACL, in __nfs3_proc_setacls() 150 args.mask |= NFS_DFACL; in __nfs3_proc_setacls()
|
D | dir.c | 2261 res->mask = cache->mask; in nfs_access_get_cached() 2304 res->mask = cache->mask; in nfs_access_get_cached_rcu() 2352 cache->mask = set->mask; in nfs_access_add_cache() 2380 entry->mask = 0; in nfs_access_set_mask() 2382 entry->mask |= MAY_READ; in nfs_access_set_mask() 2385 entry->mask |= MAY_WRITE; in nfs_access_set_mask() 2387 entry->mask |= MAY_EXEC; in nfs_access_set_mask() 2391 static int nfs_do_access(struct inode *inode, struct rpc_cred *cred, int mask) in nfs_do_access() argument 2405 if (mask & MAY_NOT_BLOCK) in nfs_do_access() 2409 cache.mask = MAY_EXEC | MAY_WRITE | MAY_READ; in nfs_do_access() [all …]
|
/fs/afs/ |
D | security.c | 288 int afs_permission(struct inode *inode, int mask) in afs_permission() argument 295 if (mask & MAY_NOT_BLOCK) in afs_permission() 299 vnode->fid.vid, vnode->fid.vnode, vnode->flags, mask); in afs_permission() 323 mask, access, S_ISDIR(inode->i_mode) ? "dir" : "file"); in afs_permission() 326 if (mask & MAY_EXEC) { in afs_permission() 329 } else if (mask & MAY_READ) { in afs_permission() 332 } else if (mask & MAY_WRITE) { in afs_permission() 343 if ((mask & MAY_EXEC) && !(inode->i_mode & S_IXUSR)) in afs_permission() 345 if (mask & (MAY_EXEC | MAY_READ)) { in afs_permission() 350 } else if (mask & MAY_WRITE) { in afs_permission()
|
/fs/ |
D | binfmt_misc.c | 53 char *mask; /* mask, NULL for exact match */ member 108 if (e->mask) { in check_file() 110 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file() 396 e->mask = p; in create_entry() 400 if (!e->mask[0]) { in create_entry() 401 e->mask = NULL; in create_entry() 406 DUMP_PREFIX_NONE, e->mask, p - e->mask); in create_entry() 415 if (e->mask && in create_entry() 416 string_unescape_inplace(e->mask, UNESCAPE_HEX) != e->size) in create_entry() 427 if (e->mask) { in create_entry() [all …]
|
/fs/ocfs2/ |
D | ocfs2_fs.h | 74 #define OCFS2_HAS_COMPAT_FEATURE(sb,mask) \ argument 75 ( OCFS2_SB(sb)->s_feature_compat & (mask) ) 76 #define OCFS2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 77 ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) ) 78 #define OCFS2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 79 ( OCFS2_SB(sb)->s_feature_incompat & (mask) ) 80 #define OCFS2_SET_COMPAT_FEATURE(sb,mask) \ argument 81 OCFS2_SB(sb)->s_feature_compat |= (mask) 82 #define OCFS2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 83 OCFS2_SB(sb)->s_feature_ro_compat |= (mask) [all …]
|
/fs/nfs_common/ |
D | nfsacl.c | 221 *group_obj = NULL, *mask = NULL; in posix_acl_from_nfsacl() local 238 mask = pa; in posix_acl_from_nfsacl() 244 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl() 245 mask->e_perm == group_obj->e_perm) { in posix_acl_from_nfsacl() 247 memmove(mask, mask+1, (3 - (mask - acl->a_entries)) * in posix_acl_from_nfsacl()
|