Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 518) sorted by relevance

12345678910>>...21

/fs/gfs2/locking/dlm/
Dlock.c49 clear_bit(LFL_AST_WAIT, &lp->flags); in wake_up_ast()
51 wake_up_bit(&lp->flags, LFL_AST_WAIT); in wake_up_ast()
87 lp->flags); in process_complete()
96 if (test_and_clear_bit(LFL_DLM_UNLOCK, &lp->flags)) { in process_complete()
101 lp->flags); in process_complete()
109 if (test_and_clear_bit(LFL_UNLOCK_DELETE, &lp->flags)) { in process_complete()
131 if (test_and_clear_bit(LFL_CANCEL, &lp->flags)) { in process_complete()
158 lp->flags); in process_complete()
166 if (test_and_clear_bit(LFL_SYNC_LVB, &lp->flags)) { in process_complete()
177 if (test_and_clear_bit(LFL_REREQUEST, &lp->flags)) { in process_complete()
[all …]
/fs/jfs/
Dioctl.c36 static long jfs_map_ext2(unsigned long flags, int from) in jfs_map_ext2() argument
43 if (jfs_map[index].ext2_flag & flags) in jfs_map_ext2()
46 if (jfs_map[index].jfs_flag & flags) in jfs_map_ext2()
59 unsigned int flags; in jfs_ioctl() local
64 flags = jfs_inode->mode2 & JFS_FL_USER_VISIBLE; in jfs_ioctl()
65 flags = jfs_map_ext2(flags, 0); in jfs_ioctl()
66 return put_user(flags, (int __user *) arg); in jfs_ioctl()
79 if (get_user(flags, (int __user *) arg)) { in jfs_ioctl()
84 flags = jfs_map_ext2(flags, 1); in jfs_ioctl()
86 flags &= ~JFS_DIRSYNC_FL; in jfs_ioctl()
[all …]
Djfs_inode.c31 unsigned int flags = JFS_IP(inode)->mode2; in jfs_set_inode_flags() local
36 if (flags & JFS_IMMUTABLE_FL) in jfs_set_inode_flags()
38 if (flags & JFS_APPEND_FL) in jfs_set_inode_flags()
40 if (flags & JFS_NOATIME_FL) in jfs_set_inode_flags()
42 if (flags & JFS_DIRSYNC_FL) in jfs_set_inode_flags()
44 if (flags & JFS_SYNC_FL) in jfs_set_inode_flags()
50 unsigned int flags = jfs_ip->vfs_inode.i_flags; in jfs_get_inode_flags() local
54 if (flags & S_IMMUTABLE) in jfs_get_inode_flags()
56 if (flags & S_APPEND) in jfs_get_inode_flags()
58 if (flags & S_NOATIME) in jfs_get_inode_flags()
[all …]
/fs/xfs/linux-2.6/
Dkmem.c31 kmem_alloc(size_t size, unsigned int __nocast flags) in kmem_alloc() argument
34 gfp_t lflags = kmem_flags_convert(flags); in kmem_alloc()
38 if (unlikely(!(flags & KM_LARGE) && (size > PAGE_SIZE))) { in kmem_alloc()
50 if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP))) in kmem_alloc()
61 kmem_zalloc(size_t size, unsigned int __nocast flags) in kmem_zalloc() argument
65 ptr = kmem_alloc(size, flags); in kmem_zalloc()
73 unsigned int __nocast flags) in kmem_zalloc_greedy() argument
77 unsigned int kmflags = (flags & ~KM_SLEEP) | KM_NOSLEEP; in kmem_zalloc_greedy()
80 if ((kmsize <= minsize) && (flags & KM_NOSLEEP)) in kmem_zalloc_greedy()
84 kmflags = flags; in kmem_zalloc_greedy()
[all …]
Dxfs_xattr.c65 const void *value, size_t size, int flags) in xfs_xattr_system_set() argument
72 if (flags & XATTR_CREATE) in xfs_xattr_system_set()
117 size_t size, int flags, int xflags) in __xfs_xattr_set() argument
125 if (flags & XATTR_CREATE) in __xfs_xattr_set()
127 if (flags & XATTR_REPLACE) in __xfs_xattr_set()
144 const void *value, size_t size, int flags) in xfs_xattr_user_set() argument
146 return __xfs_xattr_set(inode, name, value, size, flags, 0); in xfs_xattr_user_set()
165 const void *value, size_t size, int flags) in xfs_xattr_trusted_set() argument
167 return __xfs_xattr_set(inode, name, value, size, flags, ATTR_ROOT); in xfs_xattr_trusted_set()
186 const void *value, size_t size, int flags) in xfs_xattr_secure_set() argument
[all …]
/fs/ubifs/
Dioctl.c40 unsigned int flags = ubifs_inode(inode)->flags; in ubifs_set_inode_flags() local
43 if (flags & UBIFS_SYNC_FL) in ubifs_set_inode_flags()
45 if (flags & UBIFS_APPEND_FL) in ubifs_set_inode_flags()
47 if (flags & UBIFS_IMMUTABLE_FL) in ubifs_set_inode_flags()
49 if (flags & UBIFS_DIRSYNC_FL) in ubifs_set_inode_flags()
103 static int setflags(struct inode *inode, int flags) in setflags() argument
120 oldflags = ubifs2ioctl(ui->flags); in setflags()
121 if ((flags ^ oldflags) & (FS_APPEND_FL | FS_IMMUTABLE_FL)) { in setflags()
128 ui->flags = ioctl2ubifs(flags); in setflags()
150 int flags, err; in ubifs_ioctl() local
[all …]
Dlprops.c200 lp->flags &= ~LPROPS_CAT_MASK; in add_to_lpt_heap()
201 lp->flags |= LPROPS_UNCAT; in add_to_lpt_heap()
303 lprops->flags &= ~LPROPS_CAT_MASK; in ubifs_add_to_cat()
304 lprops->flags |= cat; in ubifs_add_to_cat()
354 cat = new_lprops->flags & LPROPS_CAT_MASK; in ubifs_replace_cat()
383 int cat = lprops->flags & LPROPS_CAT_MASK; in ubifs_ensure_cat()
407 if (lprops->flags & LPROPS_TAKEN) in ubifs_categorize_lprops()
411 ubifs_assert(!(lprops->flags & LPROPS_INDEX)); in ubifs_categorize_lprops()
416 if (lprops->flags & LPROPS_INDEX) in ubifs_categorize_lprops()
422 if (lprops->flags & LPROPS_INDEX) { in ubifs_categorize_lprops()
[all …]
Dfind.c56 int n, cat = lprops->flags & LPROPS_CAT_MASK; in valuable()
102 if (lprops->flags & LPROPS_TAKEN) in scan_for_dirty_cb()
111 if (data->exclude_index && lprops->flags & LPROPS_INDEX) in scan_for_dirty_cb()
163 if (lprops->flags & LPROPS_TAKEN) in scan_for_dirty()
167 if (exclude_index && (lprops->flags & LPROPS_INDEX)) in scan_for_dirty()
196 ubifs_assert(!(lprops->flags & LPROPS_TAKEN)); in scan_for_dirty()
197 ubifs_assert(!exclude_index || !(lprops->flags & LPROPS_INDEX)); in scan_for_dirty()
334 lp->lnum, lp->free, lp->dirty, lp->flags); in ubifs_find_dirty_leb()
337 lp->flags | LPROPS_TAKEN, 0); in ubifs_find_dirty_leb()
369 if (lprops->flags & LPROPS_TAKEN) in scan_for_free_cb()
[all …]
/fs/btrfs/
Dasync-thread.c70 unsigned long flags; in check_idle_worker() local
71 spin_lock_irqsave(&worker->workers->lock, flags); in check_idle_worker()
74 spin_unlock_irqrestore(&worker->workers->lock, flags); in check_idle_worker()
86 unsigned long flags; in check_busy_worker() local
87 spin_lock_irqsave(&worker->workers->lock, flags); in check_busy_worker()
91 spin_unlock_irqrestore(&worker->workers->lock, flags); in check_busy_worker()
98 unsigned long flags; in run_ordered_completions() local
103 set_bit(WORK_DONE_BIT, &work->flags); in run_ordered_completions()
105 spin_lock_irqsave(&workers->lock, flags); in run_ordered_completions()
111 if (!test_bit(WORK_DONE_BIT, &work->flags)) in run_ordered_completions()
[all …]
/fs/ocfs2/dlm/
Ddlmconvert.c62 struct dlm_lock *lock, int flags,
67 struct dlm_lock *lock, int flags, int type);
80 struct dlm_lock *lock, int flags, int type) in dlmconvert_master() argument
91 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master()
123 struct dlm_lock *lock, int flags, in __dlmconvert_master() argument
154 if (flags & LKM_VALBLK) { in __dlmconvert_master()
161 lock->lksb->flags |= DLM_LKSB_PUT_LVB; in __dlmconvert_master()
171 lock->lksb->flags |= DLM_LKSB_GET_LVB; in __dlmconvert_master()
177 flags &= ~(LKM_VALBLK); in __dlmconvert_master()
217 if (lock->lksb->flags & DLM_LKSB_PUT_LVB) in __dlmconvert_master()
[all …]
Ddlmunlock.c75 int flags,
104 int flags, int *call_ast, in dlmunlock_common() argument
113 flags & LKM_VALBLK); in dlmunlock_common()
157 if (flags & LKM_CANCEL) in dlmunlock_common()
166 if (flags & LKM_VALBLK) { in dlmunlock_common()
171 flags |= LKM_PUT_LVB; /* let the send function in dlmunlock_common()
178 if (flags & LKM_CANCEL) in dlmunlock_common()
185 flags, owner); in dlmunlock_common()
208 if (flags & LKM_CANCEL) in dlmunlock_common()
261 lksb->flags &= ~(DLM_LKSB_PUT_LVB|DLM_LKSB_GET_LVB); in dlmunlock_common()
[all …]
Ddlmlock.c63 struct dlm_lock *lock, int flags);
124 struct dlm_lock *lock, int flags) in dlmlock_master() argument
170 if (flags & LKM_NOQUEUE) { in dlmlock_master()
210 lock->lksb->flags &= ~DLM_LKSB_GET_LVB; in dlm_revert_pending_lock()
223 struct dlm_lock *lock, int flags) in dlmlock_remote() argument
230 res->lockname.name, flags); in dlmlock_remote()
246 status = dlm_send_remote_lock_request(dlm, res, lock, flags); in dlmlock_remote()
303 struct dlm_lock *lock, int flags) in dlm_send_remote_lock_request() argument
316 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
411 newlock->ml.flags = 0; in dlm_init_lock()
[all …]
/fs/xfs/quota/
Dxfs_qm_syscalls.c199 uint flags, in xfs_qm_scall_quotaoff() argument
215 if ((mp->m_qflags & flags) == 0) in xfs_qm_scall_quotaoff()
219 flags &= (XFS_ALL_QUOTA_ACCT | XFS_ALL_QUOTA_ENFD); in xfs_qm_scall_quotaoff()
236 if ((flags & XFS_ALL_QUOTA_ACCT) == 0) { in xfs_qm_scall_quotaoff()
237 mp->m_qflags &= ~(flags); in xfs_qm_scall_quotaoff()
256 if (flags & XFS_UQUOTA_ACCT) { in xfs_qm_scall_quotaoff()
258 flags |= (XFS_UQUOTA_CHKD | XFS_UQUOTA_ENFD); in xfs_qm_scall_quotaoff()
261 if (flags & XFS_GQUOTA_ACCT) { in xfs_qm_scall_quotaoff()
263 flags |= (XFS_OQUOTA_CHKD | XFS_OQUOTA_ENFD); in xfs_qm_scall_quotaoff()
265 } else if (flags & XFS_PQUOTA_ACCT) { in xfs_qm_scall_quotaoff()
[all …]
/fs/ocfs2/
Dioctl.c28 static int ocfs2_get_inode_attr(struct inode *inode, unsigned *flags) in ocfs2_get_inode_attr() argument
38 *flags = OCFS2_I(inode)->ip_attr; in ocfs2_get_inode_attr()
45 static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags, in ocfs2_set_inode_attr() argument
68 flags &= ~OCFS2_DIRSYNC_FL; in ocfs2_set_inode_attr()
78 flags = flags & mask; in ocfs2_set_inode_attr()
79 flags |= oldflags & ~mask; in ocfs2_set_inode_attr()
86 if ((oldflags & OCFS2_IMMUTABLE_FL) || ((flags ^ oldflags) & in ocfs2_set_inode_attr()
92 ocfs2_inode->ip_attr = flags; in ocfs2_set_inode_attr()
114 unsigned int flags; in ocfs2_ioctl() local
122 status = ocfs2_get_inode_attr(inode, &flags); in ocfs2_ioctl()
[all …]
/fs/
Dsplice.c70 buf->flags |= PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_steal()
88 buf->flags &= ~PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_release()
146 if (!(buf->flags & PIPE_BUF_FLAG_GIFT)) in user_page_pipe_buf_steal()
149 buf->flags |= PIPE_BUF_FLAG_LRU; in user_page_pipe_buf_steal()
204 if (spd->flags & SPLICE_F_GIFT) in splice_to_pipe()
205 buf->flags |= PIPE_BUF_FLAG_GIFT; in splice_to_pipe()
222 if (spd->flags & SPLICE_F_NONBLOCK) { in splice_to_pipe()
272 unsigned int flags) in __generic_file_splice_read() argument
285 .flags = flags, in __generic_file_splice_read()
374 if (flags & SPLICE_F_NONBLOCK) { in __generic_file_splice_read()
[all …]
Dsync.c205 unsigned int flags) in SYSCALL_DEFINE()
214 if (flags & ~VALID_FLAGS) in SYSCALL_DEFINE()
259 ret = do_sync_mapping_range(file->f_mapping, offset, endbyte, flags); in SYSCALL_DEFINE()
267 long flags) in SyS_sync_file_range() argument
270 (unsigned int) flags); in SyS_sync_file_range()
277 SYSCALL_DEFINE(sync_file_range2)(int fd, unsigned int flags, in SYSCALL_DEFINE()
280 return sys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE()
283 asmlinkage long SyS_sync_file_range2(long fd, long flags, in SyS_sync_file_range2() argument
286 return SYSC_sync_file_range2((int) fd, (unsigned int) flags, in SyS_sync_file_range2()
296 loff_t endbyte, unsigned int flags) in do_sync_mapping_range() argument
[all …]
Deventpoll.c337 unsigned long flags; in ep_poll_safewake() local
343 spin_lock_irqsave(&psw->lock, flags); in ep_poll_safewake()
354 spin_unlock_irqrestore(&psw->lock, flags); in ep_poll_safewake()
364 spin_unlock_irqrestore(&psw->lock, flags); in ep_poll_safewake()
370 spin_lock_irqsave(&psw->lock, flags); in ep_poll_safewake()
372 spin_unlock_irqrestore(&psw->lock, flags); in ep_poll_safewake()
406 unsigned long flags; in ep_remove() local
427 spin_lock_irqsave(&ep->lock, flags); in ep_remove()
430 spin_unlock_irqrestore(&ep->lock, flags); in ep_remove()
502 unsigned long flags; in ep_eventpoll_poll() local
[all …]
/fs/nfs/
Dnfsroot.c225 nfs_data.flags |= NFS_MOUNT_SOFT; in root_nfs_parse()
228 nfs_data.flags &= ~NFS_MOUNT_SOFT; in root_nfs_parse()
234 nfs_data.flags |= NFS_MOUNT_POSIX; in root_nfs_parse()
237 nfs_data.flags &= ~NFS_MOUNT_POSIX; in root_nfs_parse()
240 nfs_data.flags &= ~NFS_MOUNT_NOCTO; in root_nfs_parse()
243 nfs_data.flags |= NFS_MOUNT_NOCTO; in root_nfs_parse()
246 nfs_data.flags &= ~NFS_MOUNT_NOAC; in root_nfs_parse()
249 nfs_data.flags |= NFS_MOUNT_NOAC; in root_nfs_parse()
252 nfs_data.flags &= ~NFS_MOUNT_NONLM; in root_nfs_parse()
255 nfs_data.flags |= NFS_MOUNT_NONLM; in root_nfs_parse()
[all …]
/fs/hfsplus/
Dioctl.c26 unsigned int flags; in hfsplus_ioctl() local
30 flags = 0; in hfsplus_ioctl()
32 flags |= FS_IMMUTABLE_FL; /* EXT2_IMMUTABLE_FL */ in hfsplus_ioctl()
34 flags |= FS_APPEND_FL; /* EXT2_APPEND_FL */ in hfsplus_ioctl()
36 flags |= FS_NODUMP_FL; /* EXT2_NODUMP_FL */ in hfsplus_ioctl()
37 return put_user(flags, (int __user *)arg); in hfsplus_ioctl()
48 if (get_user(flags, (int __user *)arg)) { in hfsplus_ioctl()
52 if (flags & (FS_IMMUTABLE_FL|FS_APPEND_FL) || in hfsplus_ioctl()
61 if (flags & ~(FS_IMMUTABLE_FL|FS_APPEND_FL|FS_NODUMP_FL)) { in hfsplus_ioctl()
65 if (flags & FS_IMMUTABLE_FL) { /* EXT2_IMMUTABLE_FL */ in hfsplus_ioctl()
[all …]
/fs/ext2/
Dioctl.c25 unsigned int flags; in ext2_ioctl() local
34 flags = ei->i_flags & EXT2_FL_USER_VISIBLE; in ext2_ioctl()
35 return put_user(flags, (int __user *) arg); in ext2_ioctl()
48 if (get_user(flags, (int __user *) arg)) { in ext2_ioctl()
53 flags = ext2_mask_flags(inode->i_mode, flags); in ext2_ioctl()
70 if ((flags ^ oldflags) & (EXT2_APPEND_FL | EXT2_IMMUTABLE_FL)) { in ext2_ioctl()
78 flags = flags & EXT2_FL_USER_MODIFIABLE; in ext2_ioctl()
79 flags |= oldflags & ~EXT2_FL_USER_MODIFIABLE; in ext2_ioctl()
80 ei->i_flags = flags; in ext2_ioctl()
/fs/ecryptfs/
Dkthread.c33 u32 flags; member
61 if (ecryptfs_kthread_ctl.flags & ECRYPTFS_KTHREAD_ZOMBIE) { in ecryptfs_threadfn()
71 if (!(req->flags & ECRYPTFS_REQ_ZOMBIE)) { in ecryptfs_threadfn()
77 req->flags |= ECRYPTFS_REQ_PROCESSED; in ecryptfs_threadfn()
110 ecryptfs_kthread_ctl.flags |= ECRYPTFS_KTHREAD_ZOMBIE; in ecryptfs_destroy_kthread()
114 req->flags |= ECRYPTFS_REQ_ZOMBIE; in ecryptfs_destroy_kthread()
160 req->flags = 0; in ecryptfs_privileged_open()
162 if (ecryptfs_kthread_ctl.flags & ECRYPTFS_KTHREAD_ZOMBIE) { in ecryptfs_privileged_open()
173 wait_event(req->wait, (req->flags != 0)); in ecryptfs_privileged_open()
175 BUG_ON(req->flags == 0); in ecryptfs_privileged_open()
[all …]
/fs/xfs/
Dxfs_rw.c184 int flags, in xfs_do_force_shutdown() argument
190 logerror = flags & SHUTDOWN_LOG_IO_ERROR; in xfs_do_force_shutdown()
192 if (!(flags & SHUTDOWN_FORCE_UMOUNT)) { in xfs_do_force_shutdown()
195 mp->m_fsname, flags, lnnum, fname, __return_address); in xfs_do_force_shutdown()
212 if (flags & SHUTDOWN_CORRUPT_INCORE) { in xfs_do_force_shutdown()
219 } else if (!(flags & SHUTDOWN_FORCE_UMOUNT)) { in xfs_do_force_shutdown()
224 } else if (flags & SHUTDOWN_DEVICE_REQ) { in xfs_do_force_shutdown()
228 } else if (!(flags & SHUTDOWN_REMOTE_REQ)) { in xfs_do_force_shutdown()
234 if (!(flags & SHUTDOWN_FORCE_UMOUNT)) { in xfs_do_force_shutdown()
359 uint flags, in xfs_read_buf() argument
[all …]
/fs/squashfs/
Dsquashfs_fs.h62 #define SQUASHFS_UNCOMPRESSED_INODES(flags) SQUASHFS_BIT(flags, \ argument
65 #define SQUASHFS_UNCOMPRESSED_DATA(flags) SQUASHFS_BIT(flags, \ argument
68 #define SQUASHFS_UNCOMPRESSED_FRAGMENTS(flags) SQUASHFS_BIT(flags, \ argument
71 #define SQUASHFS_NO_FRAGMENTS(flags) SQUASHFS_BIT(flags, \ argument
74 #define SQUASHFS_ALWAYS_FRAGMENTS(flags) SQUASHFS_BIT(flags, \ argument
77 #define SQUASHFS_DUPLICATES(flags) SQUASHFS_BIT(flags, \ argument
80 #define SQUASHFS_EXPORTABLE(flags) SQUASHFS_BIT(flags, \ argument
224 __le16 flags; member
/fs/nfsd/
Dnfs4acl.c74 mask_from_posix(unsigned short perm, unsigned int flags) in mask_from_posix() argument
78 if (flags & NFS4_ACL_OWNER) in mask_from_posix()
84 if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR)) in mask_from_posix()
92 deny_mask_from_posix(unsigned short perm, u32 flags) in deny_mask_from_posix() argument
100 if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR)) in deny_mask_from_posix()
117 low_mode_from_nfs4(u32 perm, unsigned short *mode, unsigned int flags) in low_mode_from_nfs4() argument
121 if (flags & NFS4_ACL_DIR) in low_mode_from_nfs4()
143 unsigned int flags) in nfs4_acl_posix_to_nfsv4() argument
165 _posix_to_nfsv4_one(pacl, acl, flags & ~NFS4_ACL_TYPE_DEFAULT); in nfs4_acl_posix_to_nfsv4()
168 _posix_to_nfsv4_one(dpacl, acl, flags | NFS4_ACL_TYPE_DEFAULT); in nfs4_acl_posix_to_nfsv4()
[all …]
/fs/ext4/
Dioctl.c25 unsigned int flags; in ext4_ioctl() local
32 flags = ei->i_flags & EXT4_FL_USER_VISIBLE; in ext4_ioctl()
33 return put_user(flags, (int __user *) arg); in ext4_ioctl()
44 if (get_user(flags, (int __user *) arg)) in ext4_ioctl()
52 flags &= ~EXT4_DIRSYNC_FL; in ext4_ioctl()
63 jflag = flags & EXT4_JOURNAL_DATA_FL; in ext4_ioctl()
71 if ((flags ^ oldflags) & (EXT4_APPEND_FL | EXT4_IMMUTABLE_FL)) { in ext4_ioctl()
86 if (!(flags & EXT4_EXTENTS_FL)) { in ext4_ioctl()
90 } else if (flags & EXT4_EXTENTS_FL) { in ext4_ioctl()
93 flags &= ~EXT4_EXTENTS_FL; in ext4_ioctl()
[all …]

12345678910>>...21