/fs/nfsd/ |
D | nfs4acl.c | 76 int mask = NFS4_ANYONE_MODE; in mask_from_posix() local 79 mask |= NFS4_OWNER_MODE; in mask_from_posix() 81 mask |= NFS4_READ_MODE; in mask_from_posix() 83 mask |= NFS4_WRITE_MODE; in mask_from_posix() 85 mask |= NFS4_ACE_DELETE_CHILD; in mask_from_posix() 87 mask |= NFS4_EXECUTE_MODE; in mask_from_posix() 88 return mask; in mask_from_posix() 94 u32 mask = 0; in deny_mask_from_posix() local 97 mask |= NFS4_READ_MODE; in deny_mask_from_posix() 99 mask |= NFS4_WRITE_MODE; in deny_mask_from_posix() [all …]
|
D | nfs3acl.c | 43 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsd3_proc_getacl() 45 resp->mask = argp->mask; in nfsd3_proc_getacl() 47 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl() 67 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl() 131 args->mask = ntohl(*p); p++; in nfs3svc_decode_getaclargs() 146 args->mask = ntohl(*p++); in nfs3svc_decode_setaclargs() 147 if (args->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT) || in nfs3svc_decode_setaclargs() 153 (args->mask & NFS_ACL) ? in nfs3svc_decode_setaclargs() 157 (args->mask & NFS_DFACL) ? in nfs3svc_decode_setaclargs() 180 *p++ = htonl(resp->mask); in nfs3svc_encode_getaclres() [all …]
|
D | nfs2acl.c | 47 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsacld_proc_getacl() 49 resp->mask = argp->mask; in nfsacld_proc_getacl() 51 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl() 71 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl() 167 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs() 182 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs() 183 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT) || in nfsaclsvc_decode_setaclargs() 189 (argp->mask & NFS_ACL) ? in nfsaclsvc_decode_setaclargs() 193 (argp->mask & NFS_DFACL) ? in nfsaclsvc_decode_setaclargs() 241 *p++ = htonl(resp->mask); in nfsaclsvc_encode_getaclres() [all …]
|
/fs/ocfs2/cluster/ |
D | masklog.h | 149 #define __mlog_test_u64(mask, bits) \ argument 150 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 151 ((u64)(mask) >> 32) & bits.words[1] ) 152 #define __mlog_set_u64(mask, bits) do { \ argument 153 bits.words[0] |= (u32)(mask & 0xffffffff); \ 154 bits.words[1] |= (u64)(mask) >> 32; \ 156 #define __mlog_clear_u64(mask, bits) do { \ argument 157 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 158 bits.words[1] &= ~((u64)(mask) >> 32); \ 160 #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/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 | 23 u32 mask, start, len, n; in hfsplus_block_allocate() local 52 mask = (1U << 31) >> i; in hfsplus_block_allocate() 53 for (; i < 32; mask >>= 1, i++) { in hfsplus_block_allocate() 54 if (!(n & mask)) in hfsplus_block_allocate() 66 mask = 1 << 31; in hfsplus_block_allocate() 67 for (i = 0; i < 32; mask >>= 1, i++) { in hfsplus_block_allocate() 68 if (!(n & mask)) in hfsplus_block_allocate() 103 n |= mask; in hfsplus_block_allocate() 106 mask >>= 1; in hfsplus_block_allocate() 107 if (!--len || n & mask) in hfsplus_block_allocate() [all …]
|
/fs/affs/ |
D | bitmap.c | 66 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 91 mask = 1 << (bit & 31); in affs_free_block() 96 if (tmp & mask) in affs_free_block() 98 *data = cpu_to_be32(tmp | mask); in affs_free_block() 102 *(__be32 *)bh->b_data = cpu_to_be32(tmp - mask); in affs_free_block() 145 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 208 mask = ~0UL << (bit & 31); in affs_alloc_block() 212 if (tmp & mask) in affs_alloc_block() 225 mask = ~0; in affs_alloc_block() 229 bit = ffs(tmp & mask) - 1; in affs_alloc_block() [all …]
|
/fs/btrfs/ |
D | extent_io.h | 135 struct address_space *mapping, gfp_t mask); 138 gfp_t mask); 142 gfp_t mask); 143 int lock_extent(struct extent_io_tree *tree, u64 start, u64 end, gfp_t mask); 144 int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end, gfp_t mask); 146 gfp_t mask); 159 int bits, gfp_t mask); 161 int bits, int wake, int delete, gfp_t mask); 163 int bits, gfp_t mask); 165 gfp_t mask); [all …]
|
D | extent_io.c | 108 struct address_space *mapping, gfp_t mask) in extent_io_tree_init() argument 119 static struct extent_state *alloc_extent_state(gfp_t mask) in alloc_extent_state() argument 126 state = kmem_cache_alloc(extent_state_cache, mask); in alloc_extent_state() 477 int bits, int wake, int delete, gfp_t mask) in clear_extent_bit() argument 486 if (!prealloc && (mask & __GFP_WAIT)) { in clear_extent_bit() 487 prealloc = alloc_extent_state(mask); in clear_extent_bit() 573 if (mask & __GFP_WAIT) in clear_extent_bit() 666 gfp_t mask) in set_extent_bit() argument 676 if (!prealloc && (mask & __GFP_WAIT)) { in set_extent_bit() 677 prealloc = alloc_extent_state(mask); in set_extent_bit() [all …]
|
/fs/notify/inotify/ |
D | inotify.c | 300 void inotify_inode_queue_event(struct inode *inode, u32 mask, u32 cookie, in inotify_inode_queue_event() argument 310 u32 watch_mask = watch->mask; in inotify_inode_queue_event() 311 if (watch_mask & mask) { in inotify_inode_queue_event() 316 ih->in_ops->handle_event(watch, watch->wd, mask, cookie, in inotify_inode_queue_event() 332 void inotify_dentry_parent_queue_event(struct dentry *dentry, u32 mask, in inotify_dentry_parent_queue_event() argument 348 inotify_inode_queue_event(inode, mask, cookie, name, in inotify_dentry_parent_queue_event() 704 u32 mask) in inotify_find_update_watch() argument 710 if (mask & IN_MASK_ADD) in inotify_find_update_watch() 714 mask &= IN_ALL_EVENTS | IN_ONESHOT; in inotify_find_update_watch() 715 if (unlikely(!mask)) in inotify_find_update_watch() [all …]
|
D | inotify_user.c | 187 static struct inotify_kernel_event * kernel_event(s32 wd, u32 mask, u32 cookie, in kernel_event() argument 200 kevent->event.mask = mask; in kernel_event() 270 static void inotify_dev_queue_event(struct inotify_watch *w, u32 wd, u32 mask, in inotify_dev_queue_event() argument 286 if (mask & IN_IGNORED || w->mask & IN_ONESHOT) in inotify_dev_queue_event() 291 if (last && last->event.mask == mask && last->event.wd == wd && in inotify_dev_queue_event() 309 kevent = kernel_event(wd, mask, cookie, name); in inotify_dev_queue_event() 387 u32 mask) in create_watch() argument 407 ret = inotify_add_watch(dev->ih, &watch->wdata, inode, mask); in create_watch() 677 u32, mask) in SYSCALL_DEFINE3() argument 696 if (!(mask & IN_DONT_FOLLOW)) in SYSCALL_DEFINE3() [all …]
|
/fs/coda/ |
D | cache.c | 30 void coda_cache_enter(struct inode *inode, int mask) in coda_cache_enter() argument 37 cii->c_cached_perm = mask; in coda_cache_enter() 39 cii->c_cached_perm |= mask; in coda_cache_enter() 57 int coda_cache_check(struct inode *inode, int mask) in coda_cache_check() argument 62 hit = (mask & cii->c_cached_perm) == mask && in coda_cache_check()
|
D | pioctl.c | 27 static int coda_ioctl_permission(struct inode *inode, int mask); 44 static int coda_ioctl_permission(struct inode *inode, int mask) in coda_ioctl_permission() argument 46 return (mask & MAY_EXEC) ? -EACCES : 0; in coda_ioctl_permission()
|
/fs/ocfs2/ |
D | ocfs2_fs.h | 71 #define OCFS2_HAS_COMPAT_FEATURE(sb,mask) \ argument 72 ( OCFS2_SB(sb)->s_feature_compat & (mask) ) 73 #define OCFS2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 74 ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) ) 75 #define OCFS2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 76 ( OCFS2_SB(sb)->s_feature_incompat & (mask) ) 77 #define OCFS2_SET_COMPAT_FEATURE(sb,mask) \ argument 78 OCFS2_SB(sb)->s_feature_compat |= (mask) 79 #define OCFS2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 80 OCFS2_SB(sb)->s_feature_ro_compat |= (mask) [all …]
|
/fs/afs/ |
D | security.c | 287 int afs_permission(struct inode *inode, int mask) in afs_permission() argument 295 vnode->fid.vid, vnode->fid.vnode, vnode->flags, mask); in afs_permission() 319 mask, access, S_ISDIR(inode->i_mode) ? "dir" : "file"); in afs_permission() 322 if (mask & MAY_EXEC) { in afs_permission() 325 } else if (mask & MAY_READ) { in afs_permission() 328 } else if (mask & MAY_WRITE) { in afs_permission() 339 if (mask & (MAY_EXEC | MAY_READ)) { in afs_permission() 342 } else if (mask & MAY_WRITE) { in afs_permission() 349 ret = generic_permission(inode, mask, NULL); in afs_permission()
|
/fs/nfs_common/ |
D | nfsacl.c | 189 *group_obj = NULL, *mask = NULL; in posix_acl_from_nfsacl() local 209 mask = pa; in posix_acl_from_nfsacl() 216 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl() 217 mask->e_perm == group_obj->e_perm) { in posix_acl_from_nfsacl() 219 memmove(mask, mask+1, (3 - (mask - acl->a_entries)) * in posix_acl_from_nfsacl()
|
/fs/nfs/ |
D | nfs3acl.c | 224 args.mask |= NFS_ACLCNT|NFS_ACL; in nfs3_proc_getacl() 226 args.mask |= NFS_DFACLCNT|NFS_DFACL; in nfs3_proc_getacl() 227 if (args.mask == 0) in nfs3_proc_getacl() 253 if ((args.mask & res.mask) != args.mask) { in nfs3_proc_getacl() 265 (res.mask & NFS_ACL) ? res.acl_access : ERR_PTR(-EINVAL), in nfs3_proc_getacl() 266 (res.mask & NFS_DFACL) ? res.acl_default : ERR_PTR(-EINVAL)); in nfs3_proc_getacl() 298 .mask = NFS_ACL, in nfs3_proc_setacls() 320 args.mask |= NFS_DFACL; in nfs3_proc_setacls()
|
D | dir.c | 695 static inline unsigned int nfs_lookup_check_intent(struct nameidata *nd, unsigned int mask) in nfs_lookup_check_intent() argument 699 return nd->flags & mask; in nfs_lookup_check_intent() 1805 res->mask = cache->mask; in nfs_access_get_cached() 1864 cache->mask = set->mask; in nfs_access_add_cache() 1881 static int nfs_do_access(struct inode *inode, struct rpc_cred *cred, int mask) in nfs_do_access() argument 1891 cache.mask = MAY_EXEC | MAY_WRITE | MAY_READ; in nfs_do_access() 1905 if ((mask & ~cache.mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) in nfs_do_access() 1912 int mask = 0; in nfs_open_permission_mask() local 1915 mask |= MAY_READ; in nfs_open_permission_mask() 1917 mask |= MAY_WRITE; in nfs_open_permission_mask() [all …]
|
/fs/ |
D | select.c | 399 unsigned long in, out, ex, all_bits, bit = 1, mask, j; in do_select() local 420 mask = DEFAULT_POLLMASK; in do_select() 422 mask = (*f_op->poll)(file, retval ? NULL : wait); in do_select() 424 if ((mask & POLLIN_SET) && (in & bit)) { in do_select() 428 if ((mask & POLLOUT_SET) && (out & bit)) { in do_select() 432 if ((mask & POLLEX_SET) && (ex & bit)) { in do_select() 675 unsigned int mask; in do_pollfd() local 678 mask = 0; in do_pollfd() 685 mask = POLLNVAL; in do_pollfd() 687 mask = DEFAULT_POLLMASK; in do_pollfd() [all …]
|
D | binfmt_misc.c | 52 char *mask; /* mask, NULL for exact match */ member 88 if (e->mask) { in check_file() 90 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file() 353 e->mask = p; in create_entry() 358 if (!e->mask[0]) in create_entry() 359 e->mask = NULL; in create_entry() 361 if (e->mask && unquote(e->mask) != e->size) in create_entry() 480 if (e->mask) { in entry_status() 484 sprintf(dp, "%02x", 0xff & (int) (e->mask[i])); in entry_status()
|
/fs/ext4/ |
D | ext4.h | 729 #define EXT4_HAS_COMPAT_FEATURE(sb,mask) \ argument 730 ((EXT4_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask)) != 0) 731 #define EXT4_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 732 ((EXT4_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask)) != 0) 733 #define EXT4_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 734 ((EXT4_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask)) != 0) 735 #define EXT4_SET_COMPAT_FEATURE(sb,mask) \ argument 736 EXT4_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) 737 #define EXT4_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 738 EXT4_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask) [all …]
|
/fs/xfs/linux-2.6/ |
D | xfs_ioctl.c | 923 int mask) in xfs_ioctl_setattr() argument 947 if (XFS_IS_QUOTA_ON(mp) && (mask & FSX_PROJID)) { in xfs_ioctl_setattr() 982 if (mask & FSX_PROJID) { in xfs_ioctl_setattr() 994 if (mask & FSX_EXTSIZE) { in xfs_ioctl_setattr() 1013 ((mask & FSX_XFLAGS) && in xfs_ioctl_setattr() 1029 if (mask & FSX_XFLAGS) { in xfs_ioctl_setattr() 1072 if (mask & FSX_PROJID) { in xfs_ioctl_setattr() 1105 if (mask & FSX_EXTSIZE) in xfs_ioctl_setattr() 1107 if (mask & FSX_XFLAGS) { in xfs_ioctl_setattr() 1145 (mask & FSX_NONBLOCK) ? DM_FLAGS_NDELAY : 0); in xfs_ioctl_setattr() [all …]
|
/fs/yaffs2/ |
D | yportenv.h | 96 #define yaffs_trace(mask, fmt, args...) \ argument 97 do { if ((mask) & (yaffs_traceMask|YAFFS_TRACE_ERROR)) \ 197 #define T(mask, p) do { if ((mask) & (yaffs_traceMask | YAFFS_TRACE_ALWAYS)) TOUT(p); } while (0) argument
|
/fs/xfs/ |
D | xfs_rtalloc.c | 938 xfs_rtword_t mask; /* mask of relevant bits for value */ in xfs_rtcheck_range() local 976 mask = (((xfs_rtword_t)1 << (lastbit - bit)) - 1) << bit; in xfs_rtcheck_range() 980 if ((wdiff = (*b ^ val) & mask)) { in xfs_rtcheck_range() 1067 mask = ((xfs_rtword_t)1 << lastbit) - 1; in xfs_rtcheck_range() 1071 if ((wdiff = (*b ^ val) & mask)) { in xfs_rtcheck_range() 1155 xfs_rtword_t mask; /* mask of relevant bits for value */ in xfs_rtfind_back() local 1191 mask = (((xfs_rtword_t)1 << (bit - firstbit + 1)) - 1) << in xfs_rtfind_back() 1197 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() 1286 mask = (((xfs_rtword_t)1 << (len - i)) - 1) << firstbit; in xfs_rtfind_back() 1290 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() [all …]
|