Searched refs:flctx (Results 1 – 8 of 8) sorted by relevance
/fs/lockd/ |
D | svcsubs.c | 168 struct file_lock_context *flctx = inode->i_flctx; in nlm_traverse_locks() local 171 if (!flctx || list_empty_careful(&flctx->flc_posix)) in nlm_traverse_locks() 175 spin_lock(&flctx->flc_lock); in nlm_traverse_locks() 176 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_traverse_locks() 187 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 199 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 230 struct file_lock_context *flctx = inode->i_flctx; in nlm_file_inuse() local 235 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse() 236 spin_lock(&flctx->flc_lock); in nlm_file_inuse() 237 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_file_inuse() [all …]
|
/fs/nfs/ |
D | write.c | 1177 struct file_lock_context *flctx = file_inode(file)->i_flctx; in nfs_flush_incompatible() local 1195 if (l_ctx && flctx && in nfs_flush_incompatible() 1196 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible() 1197 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible() 1295 struct file_lock_context *flctx = inode->i_flctx; in nfs_can_extend_write() local 1304 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write() 1305 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write() 1310 spin_lock(&flctx->flc_lock); in nfs_can_extend_write() 1311 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write() 1312 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write() [all …]
|
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()
|
D | pagelist.c | 1055 struct file_lock_context *flctx; in nfs_coalesce_size() local 1060 flctx = d_inode(nfs_req_openctx(req)->dentry)->i_flctx; in nfs_coalesce_size() 1061 if (flctx != NULL && in nfs_coalesce_size() 1062 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size() 1063 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
|
D | nfs4state.c | 1519 struct file_lock_context *flctx = inode->i_flctx; in nfs4_reclaim_locks() local 1522 if (flctx == NULL) in nfs4_reclaim_locks() 1525 list = &flctx->flc_posix; in nfs4_reclaim_locks() 1529 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1534 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks() 1565 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1567 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks() 1568 list = &flctx->flc_flock; in nfs4_reclaim_locks() 1571 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
|
/fs/cifs/ |
D | file.c | 1276 struct file_lock_context *flctx = inode->i_flctx; in cifs_push_posix_locks() local 1285 if (!flctx) in cifs_push_posix_locks() 1288 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1289 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks() 1292 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks() 1311 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1312 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks() 1333 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
|
/fs/nfsd/ |
D | nfs4state.c | 7085 struct file_lock_context *flctx; in check_for_locks() local 7094 flctx = inode->i_flctx; in check_for_locks() 7096 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks() 7097 spin_lock(&flctx->flc_lock); in check_for_locks() 7098 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks() 7104 spin_unlock(&flctx->flc_lock); in check_for_locks()
|
/fs/ |
D | locks.c | 2733 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument 2738 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
|