Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 125) sorted by relevance

12345

/fs/ocfs2/cluster/
Dmasklog.h134 #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 …]
Dmasklog.c36 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/
Dnfs4acl.c68 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 …]
Dnfs3acl.c41 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsd3_proc_getacl()
43 resp->mask = argp->mask; in nfsd3_proc_getacl()
45 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl()
65 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl()
129 args->mask = ntohl(*p); p++; in nfs3svc_decode_getaclargs()
144 args->mask = ntohl(*p++); in nfs3svc_decode_setaclargs()
145 if (args->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT) || in nfs3svc_decode_setaclargs()
151 (args->mask & NFS_ACL) ? in nfs3svc_decode_setaclargs()
155 (args->mask & NFS_DFACL) ? in nfs3svc_decode_setaclargs()
178 *p++ = htonl(resp->mask); in nfs3svc_encode_getaclres()
[all …]
Dnfs2acl.c44 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsacld_proc_getacl()
46 resp->mask = argp->mask; in nfsacld_proc_getacl()
52 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl()
72 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl()
179 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs()
194 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs()
195 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT) || in nfsaclsvc_decode_setaclargs()
201 (argp->mask & NFS_ACL) ? in nfsaclsvc_decode_setaclargs()
205 (argp->mask & NFS_DFACL) ? in nfsaclsvc_decode_setaclargs()
262 *p++ = htonl(resp->mask); in nfsaclsvc_encode_getaclres()
[all …]
/fs/hfs/
Dbitmap.c32 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/notify/
Dfsnotify.c90 int __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask) in __fsnotify_parent() argument
107 else if (p_inode->i_fsnotify_mask & mask) { in __fsnotify_parent()
110 mask |= FS_EVENT_ON_CHILD; in __fsnotify_parent()
113 ret = fsnotify(p_inode, mask, path, FSNOTIFY_EVENT_PATH, in __fsnotify_parent()
116 ret = fsnotify(p_inode, mask, dentry->d_inode, FSNOTIFY_EVENT_INODE, in __fsnotify_parent()
129 __u32 mask, void *data, in send_to_group() argument
144 if (mask & FS_MODIFY) { in send_to_group()
156 inode_test_mask = (mask & ~FS_EVENT_ON_CHILD); in send_to_group()
157 inode_test_mask &= inode_mark->mask; in send_to_group()
163 vfsmount_test_mask = (mask & ~FS_EVENT_ON_CHILD); in send_to_group()
[all …]
Dmark.c201 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask) in fsnotify_set_mark_mask_locked() argument
205 mark->mask = mask; in fsnotify_set_mark_mask_locked()
208 fsnotify_set_inode_mark_mask_locked(mark, mask); in fsnotify_set_mark_mask_locked()
211 void fsnotify_set_mark_ignored_mask_locked(struct fsnotify_mark *mark, __u32 mask) in fsnotify_set_mark_ignored_mask_locked() argument
215 mark->ignored_mask = mask; in fsnotify_set_mark_ignored_mask_locked()
261 fsnotify_set_mark_mask_locked(mark, mark->mask); in fsnotify_add_mark_locked()
330 new->mask = old->mask; in fsnotify_duplicate_mark()
/fs/hfsplus/
Dbitmap.c25 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/fanotify/
Dfanotify.c23 if ((old->mask & FAN_ALL_PERM_EVENTS) && in should_merge()
24 (new->mask & FAN_ALL_PERM_EVENTS)) in should_merge()
64 if (test_event->mask == event->mask) in fanotify_merge()
73 test_event->mask |= event->mask; in fanotify_merge()
87 new_event->mask = (test_event->mask | event->mask); in fanotify_merge()
154 if (event->mask & FAN_ALL_PERM_EVENTS) { in fanotify_handle_event()
191 marks_mask = (vfsmnt_mark->mask | inode_mark->mask); in fanotify_should_send_event()
199 !(inode_mark->mask & FS_EVENT_ON_CHILD)) in fanotify_should_send_event()
201 marks_mask = inode_mark->mask; in fanotify_should_send_event()
204 marks_mask = vfsmnt_mark->mask; in fanotify_should_send_event()
Dfanotify_user.c125 metadata->mask = event->mask & FAN_ALL_OUTGOING_EVENTS; in fill_event_metadata()
127 if (unlikely(event->mask & FAN_Q_OVERFLOW)) in fill_event_metadata()
204 if (!(event->mask & FAN_ALL_PERM_EVENTS)) in prepare_for_access_response()
274 if (event->mask & FAN_ALL_PERM_EVENTS) { in copy_event_to_user()
500 __u32 mask, in fanotify_mark_remove_from_mask() argument
508 oldmask = fsn_mark->mask; in fanotify_mark_remove_from_mask()
509 fsnotify_set_mark_mask_locked(fsn_mark, (oldmask & ~mask)); in fanotify_mark_remove_from_mask()
512 fsnotify_set_mark_ignored_mask_locked(fsn_mark, (oldmask & ~mask)); in fanotify_mark_remove_from_mask()
516 *destroy = !(oldmask & ~mask); in fanotify_mark_remove_from_mask()
518 return mask & oldmask; in fanotify_mark_remove_from_mask()
[all …]
/fs/affs/
Dbitmap.c43 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()
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/inotify/
Dinotify_user.c92 __u32 mask; in inotify_arg_to_mask() local
98 mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD | FS_UNMOUNT); in inotify_arg_to_mask()
101 mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT | IN_EXCL_UNLINK)); in inotify_arg_to_mask()
103 return mask; in inotify_arg_to_mask()
106 static inline u32 inotify_mask_to_arg(__u32 mask) in inotify_mask_to_arg() argument
108 return mask & (IN_ALL_EVENTS | IN_ISDIR | IN_UNMOUNT | IN_IGNORED | in inotify_mask_to_arg()
200 inotify_event.mask = inotify_mask_to_arg(event->mask); in copy_event_to_user()
566 __u32 mask; in inotify_update_existing_watch() local
570 mask = inotify_arg_to_mask(arg); in inotify_update_existing_watch()
580 old_mask = fsn_mark->mask; in inotify_update_existing_watch()
[all …]
Dinotify_fsnotify.c42 if ((old->mask == new->mask) && in event_compare()
61 if (old->mask & FS_Q_OVERFLOW) in event_compare()
63 else if (old->mask & FS_IN_IGNORED) in event_compare()
107 event, event->to_tell, event->mask); in inotify_handle_event()
134 if (inode_mark->mask & IN_ONESHOT) in inotify_handle_event()
148 __u32 mask, void *data, int data_type) in inotify_should_send_event() argument
150 if ((inode_mark->mask & FS_EXCL_UNLINK) && in inotify_should_send_event()
/fs/ext2/
Dext2.h506 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ argument
507 ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) )
508 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument
509 ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) )
510 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument
511 ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) )
512 #define EXT2_SET_COMPAT_FEATURE(sb,mask) \ argument
513 EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask)
514 #define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument
515 EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask)
[all …]
/fs/coda/
Dcache.c30 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/
Ddnotify.c64 old_mask = fsn_mark->mask; in dnotify_recalc_inode_mask()
95 __u32 test_mask = event->mask & ~FS_EVENT_ON_CHILD; in dnotify_handle_event()
134 __u32 mask, void *data, int data_type) in dnotify_should_send_event() argument
241 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument
250 odn->dn_mask |= mask; in attach_dn()
256 dn->dn_mask = mask; in attach_dn()
280 __u32 mask; in fcntl_dirnotify() local
320 mask = convert_arg(arg); in fcntl_dirnotify()
325 new_fsn_mark->mask = mask; in fcntl_dirnotify()
374 error = attach_dn(dn, dn_mark, id, fd, filp, mask); in fcntl_dirnotify()
/fs/btrfs/
Dextent_io.h191 gfp_t mask);
198 struct extent_state **cached, gfp_t mask);
214 unsigned long bits, gfp_t mask);
217 struct extent_state **cached, gfp_t mask);
219 unsigned long bits, gfp_t mask);
222 struct extent_state **cached_state, gfp_t mask);
224 struct extent_state **cached_state, gfp_t mask);
226 struct extent_state **cached_state, gfp_t mask);
228 gfp_t mask);
230 gfp_t mask);
[all …]
/fs/afs/
Dsecurity.c288 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 | MAY_READ)) { in afs_permission()
346 } else if (mask & MAY_WRITE) { in afs_permission()
353 ret = generic_permission(inode, mask); in afs_permission()
/fs/xfs/
Dxfs_iops.c488 int mask = iattr->ia_valid; in xfs_setattr_nonsize() local
508 ASSERT((mask & ATTR_SIZE) == 0); in xfs_setattr_nonsize()
518 if (XFS_IS_QUOTA_ON(mp) && (mask & (ATTR_UID|ATTR_GID))) { in xfs_setattr_nonsize()
521 if ((mask & ATTR_UID) && XFS_IS_UQUOTA_ON(mp)) { in xfs_setattr_nonsize()
527 if ((mask & ATTR_GID) && XFS_IS_GQUOTA_ON(mp)) { in xfs_setattr_nonsize()
557 if (mask & (ATTR_UID|ATTR_GID)) { in xfs_setattr_nonsize()
566 gid = (mask & ATTR_GID) ? iattr->ia_gid : igid; in xfs_setattr_nonsize()
567 uid = (mask & ATTR_UID) ? iattr->ia_uid : iuid; in xfs_setattr_nonsize()
590 if (mask & (ATTR_UID|ATTR_GID)) { in xfs_setattr_nonsize()
607 ASSERT(mask & ATTR_UID); in xfs_setattr_nonsize()
[all …]
/fs/ocfs2/
Docfs2_fs.h74 #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/
Dnfsacl.c223 *group_obj = NULL, *mask = NULL; in posix_acl_from_nfsacl() local
240 mask = pa; in posix_acl_from_nfsacl()
246 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl()
247 mask->e_perm == group_obj->e_perm) { in posix_acl_from_nfsacl()
249 memmove(mask, mask+1, (3 - (mask - acl->a_entries)) * in posix_acl_from_nfsacl()
/fs/nfs/
Dnfs3acl.c222 args.mask |= NFS_ACLCNT|NFS_ACL; in nfs3_proc_getacl()
224 args.mask |= NFS_DFACLCNT|NFS_DFACL; in nfs3_proc_getacl()
225 if (args.mask == 0) in nfs3_proc_getacl()
254 if ((args.mask & res.mask) != args.mask) { in nfs3_proc_getacl()
266 (res.mask & NFS_ACL) ? res.acl_access : ERR_PTR(-EINVAL), in nfs3_proc_getacl()
267 (res.mask & NFS_DFACL) ? res.acl_default : ERR_PTR(-EINVAL)); in nfs3_proc_getacl()
300 .mask = NFS_ACL, in nfs3_proc_setacls()
322 args.mask |= NFS_DFACL; in nfs3_proc_setacls()
/fs/ext3/
Dext3.h752 #define EXT3_HAS_COMPAT_FEATURE(sb,mask) \ argument
753 ( EXT3_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) )
754 #define EXT3_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument
755 ( EXT3_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) )
756 #define EXT3_HAS_INCOMPAT_FEATURE(sb,mask) \ argument
757 ( EXT3_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) )
758 #define EXT3_SET_COMPAT_FEATURE(sb,mask) \ argument
759 EXT3_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask)
760 #define EXT3_SET_RO_COMPAT_FEATURE(sb,mask) \ argument
761 EXT3_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask)
[all …]
/fs/sdcardfs/
Dsuper.c162 opt->mask = old->mask; in sdcardfs_clone_mnt_data()
172 old->mask = new->mask; in sdcardfs_copy_mnt_data()
301 if (vfsopts->mask) in sdcardfs_show_options()
302 seq_printf(m, ",mask=%u", vfsopts->mask); in sdcardfs_show_options()

12345