Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 120) 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()
48 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl()
68 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl()
164 argp->mask = ntohl(*p); p++; in nfsaclsvc_decode_getaclargs()
179 argp->mask = ntohl(*p++); in nfsaclsvc_decode_setaclargs()
180 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT) || in nfsaclsvc_decode_setaclargs()
186 (argp->mask & NFS_ACL) ? in nfsaclsvc_decode_setaclargs()
190 (argp->mask & NFS_DFACL) ? in nfsaclsvc_decode_setaclargs()
248 *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.c195 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask) in fsnotify_set_mark_mask_locked() argument
199 mark->mask = mask; in fsnotify_set_mark_mask_locked()
202 fsnotify_set_inode_mark_mask_locked(mark, mask); in fsnotify_set_mark_mask_locked()
205 void fsnotify_set_mark_ignored_mask_locked(struct fsnotify_mark *mark, __u32 mask) in fsnotify_set_mark_ignored_mask_locked() argument
209 mark->ignored_mask = mask; in fsnotify_set_mark_ignored_mask_locked()
257 fsnotify_set_mark_mask_locked(mark, mark->mask); in fsnotify_add_mark()
321 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_user.c124 metadata->mask = event->mask & FAN_ALL_OUTGOING_EVENTS; in fill_event_metadata()
126 if (unlikely(event->mask & FAN_Q_OVERFLOW)) in fill_event_metadata()
203 if (!(event->mask & FAN_ALL_PERM_EVENTS)) in prepare_for_access_response()
234 if (!(event->mask & FAN_ALL_PERM_EVENTS)) in remove_access_response()
295 if (event->mask & FAN_ALL_PERM_EVENTS) { in copy_event_to_user()
518 __u32 mask, in fanotify_mark_remove_from_mask() argument
525 oldmask = fsn_mark->mask; in fanotify_mark_remove_from_mask()
526 fsnotify_set_mark_mask_locked(fsn_mark, (oldmask & ~mask)); in fanotify_mark_remove_from_mask()
529 fsnotify_set_mark_ignored_mask_locked(fsn_mark, (oldmask & ~mask)); in fanotify_mark_remove_from_mask()
533 if (!(oldmask & ~mask)) in fanotify_mark_remove_from_mask()
[all …]
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()
/fs/affs/
Dbitmap.c67 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
92 mask = 1 << (bit & 31); in affs_free_block()
97 if (tmp & mask) in affs_free_block()
99 *data = cpu_to_be32(tmp | mask); in affs_free_block()
103 *(__be32 *)bh->b_data = cpu_to_be32(tmp - mask); in affs_free_block()
146 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
209 mask = ~0UL << (bit & 31); in affs_alloc_block()
213 if (tmp & mask) in affs_alloc_block()
226 mask = ~0; in affs_alloc_block()
230 bit = ffs(tmp & mask) - 1; in affs_alloc_block()
[all …]
/fs/notify/inotify/
Dinotify_user.c91 __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()
199 inotify_event.mask = inotify_mask_to_arg(event->mask); in copy_event_to_user()
576 __u32 mask; in inotify_update_existing_watch() local
580 mask = inotify_arg_to_mask(arg); in inotify_update_existing_watch()
590 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()
133 if (inode_mark->mask & IN_ONESHOT) in inotify_handle_event()
147 __u32 mask, void *data, int data_type) in inotify_should_send_event() argument
149 if ((inode_mark->mask & FS_EXCL_UNLINK) && in inotify_should_send_event()
/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/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/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.h192 gfp_t mask);
193 int try_release_extent_buffer(struct page *page, gfp_t mask);
196 gfp_t mask);
202 struct extent_state **cached, gfp_t mask);
217 int bits, gfp_t mask);
220 gfp_t mask);
222 int bits, gfp_t mask);
225 struct extent_state **cached_state, gfp_t mask);
227 struct extent_state **cached_state, gfp_t mask);
229 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.c490 int mask = iattr->ia_valid; in xfs_setattr_nonsize() local
510 ASSERT((mask & ATTR_SIZE) == 0); in xfs_setattr_nonsize()
520 if (XFS_IS_QUOTA_ON(mp) && (mask & (ATTR_UID|ATTR_GID))) { in xfs_setattr_nonsize()
523 if ((mask & ATTR_UID) && XFS_IS_UQUOTA_ON(mp)) { in xfs_setattr_nonsize()
529 if ((mask & ATTR_GID) && XFS_IS_GQUOTA_ON(mp)) { in xfs_setattr_nonsize()
559 if (mask & (ATTR_UID|ATTR_GID)) { in xfs_setattr_nonsize()
568 gid = (mask & ATTR_GID) ? iattr->ia_gid : igid; in xfs_setattr_nonsize()
569 uid = (mask & ATTR_UID) ? iattr->ia_uid : iuid; in xfs_setattr_nonsize()
592 if (mask & (ATTR_UID|ATTR_GID)) { in xfs_setattr_nonsize()
609 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.c208 *group_obj = NULL, *mask = NULL; in posix_acl_from_nfsacl() local
228 mask = pa; in posix_acl_from_nfsacl()
235 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl()
236 mask->e_perm == group_obj->e_perm) { in posix_acl_from_nfsacl()
238 memmove(mask, mask+1, (3 - (mask - acl->a_entries)) * in posix_acl_from_nfsacl()
/fs/ceph/
Dsuper.h439 static inline void ceph_i_clear(struct inode *inode, unsigned mask) in ceph_i_clear() argument
444 ci->i_ceph_flags &= ~mask; in ceph_i_clear()
448 static inline void ceph_i_set(struct inode *inode, unsigned mask) in ceph_i_set() argument
453 ci->i_ceph_flags |= mask; in ceph_i_set()
457 static inline bool ceph_i_test(struct inode *inode, unsigned mask) in ceph_i_test() argument
463 r = (ci->i_ceph_flags & mask) == mask; in ceph_i_test()
507 extern int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int t);
520 static inline int ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, in ceph_caps_issued_mask() argument
525 r = __ceph_caps_issued_mask(ci, mask, touch); in ceph_caps_issued_mask()
534 extern int __ceph_mark_dirty_caps(struct ceph_inode_info *ci, int mask);
[all …]
/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 …]

12345