Searched refs:flctx (Results 1 – 8 of 8) sorted by relevance
| /linux/fs/lockd/ |
| A D | svcsubs.c | 207 struct file_lock_context *flctx = inode->i_flctx; in nlm_traverse_locks() local 210 if (!flctx || list_empty_careful(&flctx->flc_posix)) in nlm_traverse_locks() 214 spin_lock(&flctx->flc_lock); in nlm_traverse_locks() 215 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_traverse_locks() 225 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 231 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 262 struct file_lock_context *flctx = inode->i_flctx; in nlm_file_inuse() local 267 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse() 268 spin_lock(&flctx->flc_lock); in nlm_file_inuse() 271 spin_unlock(&flctx->flc_lock); in nlm_file_inuse() [all …]
|
| /linux/fs/nfs/ |
| A D | write.c | 1207 if (l_ctx && flctx && in nfs_flush_incompatible() 1208 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible() 1209 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible() 1325 struct file_lock_context *flctx = inode->i_flctx; in nfs_can_extend_write() local 1334 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write() 1335 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write() 1340 spin_lock(&flctx->flc_lock); in nfs_can_extend_write() 1341 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write() 1342 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write() 1346 } else if (!list_empty(&flctx->flc_flock)) { in nfs_can_extend_write() [all …]
|
| A D | delegation.c | 149 struct file_lock_context *flctx = inode->i_flctx; in nfs_delegation_claim_locks() local 153 if (flctx == NULL) in nfs_delegation_claim_locks() 156 list = &flctx->flc_posix; in nfs_delegation_claim_locks() 157 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 162 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks() 166 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 168 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks() 169 list = &flctx->flc_flock; in nfs_delegation_claim_locks() 172 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
|
| A D | pagelist.c | 1050 struct file_lock_context *flctx; in nfs_coalesce_size() local 1055 flctx = d_inode(nfs_req_openctx(req)->dentry)->i_flctx; in nfs_coalesce_size() 1056 if (flctx != NULL && in nfs_coalesce_size() 1057 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size() 1058 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
|
| A D | nfs4state.c | 1495 struct file_lock_context *flctx = inode->i_flctx; in nfs4_reclaim_locks() local 1498 if (flctx == NULL) in nfs4_reclaim_locks() 1501 list = &flctx->flc_posix; in nfs4_reclaim_locks() 1505 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1510 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks() 1541 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1543 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks() 1544 list = &flctx->flc_flock; in nfs4_reclaim_locks() 1547 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
|
| /linux/fs/cifs/ |
| A D | file.c | 1347 struct file_lock_context *flctx = inode->i_flctx; in cifs_push_posix_locks() local 1356 if (!flctx) in cifs_push_posix_locks() 1359 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1360 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks() 1363 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks() 1382 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1383 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks() 1404 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
|
| /linux/fs/nfsd/ |
| A D | nfs4state.c | 7230 struct file_lock_context *flctx; in check_for_locks() local 7239 flctx = inode->i_flctx; in check_for_locks() 7241 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks() 7242 spin_lock(&flctx->flc_lock); in check_for_locks() 7243 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks() 7249 spin_unlock(&flctx->flc_lock); in check_for_locks()
|
| /linux/fs/ |
| A D | locks.c | 2524 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument 2529 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
|
Completed in 48 milliseconds