• Home
  • Raw
  • Download

Lines Matching refs:flags

42 	if (!test_and_set_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) {  in nfs_mark_delegation_revoked()
45 if (!test_bit(NFS_DELEGATION_RETURNING, &delegation->flags)) in nfs_mark_delegation_revoked()
75 set_bit(NFS_DELEGATION_REFERENCED, &delegation->flags); in nfs_mark_delegation_referenced()
81 set_bit(NFS_DELEGATION_RETURN, &delegation->flags); in nfs_mark_return_delegation()
87 fmode_t flags) in nfs4_is_valid_delegation() argument
89 if (delegation != NULL && (delegation->type & flags) == flags && in nfs4_is_valid_delegation()
90 !test_bit(NFS_DELEGATION_REVOKED, &delegation->flags) && in nfs4_is_valid_delegation()
91 !test_bit(NFS_DELEGATION_RETURNING, &delegation->flags)) in nfs4_is_valid_delegation()
107 nfs4_do_check_delegation(struct inode *inode, fmode_t flags, bool mark) in nfs4_do_check_delegation() argument
112 flags &= FMODE_READ|FMODE_WRITE; in nfs4_do_check_delegation()
115 if (nfs4_is_valid_delegation(delegation, flags)) { in nfs4_do_check_delegation()
131 int nfs4_have_delegation(struct inode *inode, fmode_t flags) in nfs4_have_delegation() argument
133 return nfs4_do_check_delegation(inode, flags, true); in nfs4_have_delegation()
140 int nfs4_check_delegation(struct inode *inode, fmode_t flags) in nfs4_check_delegation() argument
142 return nfs4_do_check_delegation(inode, flags, false); in nfs4_check_delegation()
193 if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) in nfs_delegation_claim_opens()
246 clear_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags); in nfs_inode_reclaim_delegation()
248 &delegation->flags)) in nfs_inode_reclaim_delegation()
266 if (!test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) { in nfs_do_return_delegation()
286 set_bit(NFS_DELEGATION_INODE_FREEING, &delegation->flags); in nfs_delegation_grab_inode()
300 if (!test_and_set_bit(NFS_DELEGATION_RETURNING, &delegation->flags)) { in nfs_start_delegation_return_locked()
301 clear_bit(NFS_DELEGATION_RETURN_DELAYED, &delegation->flags); in nfs_start_delegation_return_locked()
328 clear_bit(NFS_DELEGATION_RETURNING, &delegation->flags); in nfs_abort_delegation_return()
330 set_bit(NFS_DELEGATION_RETURN_DELAYED, &delegation->flags); in nfs_abort_delegation_return()
408 if (test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) { in nfs_update_inplace_delegation()
412 clear_bit(NFS_DELEGATION_REVOKED, &delegation->flags); in nfs_update_inplace_delegation()
450 delegation->flags = 1<<NFS_DELEGATION_REFERENCED; in nfs_inode_set_delegation()
467 if (!test_bit(NFS_DELEGATION_REVOKED, &old_delegation->flags)) { in nfs_inode_set_delegation()
484 &old_delegation->flags)) in nfs_inode_set_delegation()
525 if (test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) in nfs_end_delegation_return()
553 if (test_and_clear_bit(NFS_DELEGATION_RETURN, &delegation->flags)) in nfs_delegation_need_return()
555 else if (test_bit(NFS_DELEGATION_RETURN_IF_CLOSED, &delegation->flags)) { in nfs_delegation_need_return()
565 clear_bit(NFS_DELEGATION_RETURN_IF_CLOSED, &delegation->flags); in nfs_delegation_need_return()
566 if (test_bit(NFS_DELEGATION_RETURNING, &delegation->flags) || in nfs_delegation_need_return()
567 test_bit(NFS_DELEGATION_RETURN_DELAYED, &delegation->flags) || in nfs_delegation_need_return()
568 test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) in nfs_delegation_need_return()
605 if (test_bit(NFS_DELEGATION_INODE_FREEING, &delegation->flags)) in nfs_server_return_marked_delegations()
653 if (!test_bit(NFS_DELEGATION_RETURN_DELAYED, &d->flags)) in nfs_server_clear_delayed_delegations()
656 clear_bit(NFS_DELEGATION_RETURN_DELAYED, &d->flags); in nfs_server_clear_delayed_delegations()
715 set_bit(NFS_DELEGATION_RETURNING, &delegation->flags); in nfs_inode_evict_delegation()
716 set_bit(NFS_DELEGATION_INODE_FREEING, &delegation->flags); in nfs_inode_evict_delegation()
763 if (test_bit(NFS_DELEGATION_RETURN_IF_CLOSED, &delegation->flags) || in nfs4_inode_return_delegation_on_close()
768 !test_and_set_bit(NFS_DELEGATION_RETURNING, &delegation->flags)) { in nfs4_inode_return_delegation_on_close()
769 clear_bit(NFS_DELEGATION_RETURN_IF_CLOSED, &delegation->flags); in nfs4_inode_return_delegation_on_close()
809 set_bit(NFS_DELEGATION_RETURN_IF_CLOSED, &delegation->flags); in nfs_mark_return_if_closed_delegation()
876 fmode_t flags) in nfs_mark_return_unused_delegation_types() argument
881 if ((delegation->type == (FMODE_READ|FMODE_WRITE)) && !(flags & FMODE_WRITE)) in nfs_mark_return_unused_delegation_types()
883 if (delegation->type & flags) in nfs_mark_return_unused_delegation_types()
889 fmode_t flags) in nfs_client_mark_return_unused_delegation_types() argument
895 nfs_mark_return_unused_delegation_types(server, flags); in nfs_client_mark_return_unused_delegation_types()
968 clear_bit(NFS_DELEGATION_RETURNING, &delegation->flags); in nfs_delegation_mark_returned()
983 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags) in nfs_expire_unused_delegation_types() argument
985 nfs_client_mark_return_unused_delegation_types(clp, flags); in nfs_expire_unused_delegation_types()
994 if (test_and_clear_bit(NFS_DELEGATION_REFERENCED, &delegation->flags)) in nfs_mark_return_unreferenced_delegations()
1059 !test_bit(NFS_DELEGATION_REVOKED, &delegation->flags) && in nfs_delegation_find_inode_server()
1115 if (test_bit(NFS_DELEGATION_TEST_EXPIRED, &delegation->flags)) in nfs_delegation_mark_reclaim_server()
1117 set_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags); in nfs_delegation_mark_reclaim_server()
1146 &delegation->flags) || in nfs_server_reap_unclaimed_delegations()
1148 &delegation->flags) || in nfs_server_reap_unclaimed_delegations()
1150 &delegation->flags) == 0) in nfs_server_reap_unclaimed_delegations()
1195 clear_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags); in nfs_mark_test_expired_delegation()
1196 set_bit(NFS_DELEGATION_TEST_EXPIRED, &delegation->flags); in nfs_mark_test_expired_delegation()
1278 &delegation->flags) || in nfs_server_reap_expired_delegations()
1280 &delegation->flags) || in nfs_server_reap_expired_delegations()
1282 &delegation->flags) == 0) in nfs_server_reap_expired_delegations()
1291 clear_bit(NFS_DELEGATION_TEST_EXPIRED, &delegation->flags); in nfs_server_reap_expired_delegations()
1334 !test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) { in nfs_inode_find_delegation_state_and_recover()
1385 !test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) { in nfs4_refresh_delegation_stateid()
1404 bool nfs4_copy_delegation_stateid(struct inode *inode, fmode_t flags, in nfs4_copy_delegation_stateid() argument
1411 flags &= FMODE_READ|FMODE_WRITE; in nfs4_copy_delegation_stateid()
1417 ret = nfs4_is_valid_delegation(delegation, flags); in nfs4_copy_delegation_stateid()