Home
last modified time | relevance | path

Searched refs:snap_rwsem (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/fs/ceph/
Dquota.c241 up_read(&mdsc->snap_rwsem); in get_quota_realm()
243 down_read(&mdsc->snap_rwsem); in get_quota_realm()
283 down_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()
287 up_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()
293 up_read(&mdsc->snap_rwsem); in ceph_quota_is_same_realm()
329 down_read(&mdsc->snap_rwsem); in check_quota_exceeded()
347 up_read(&mdsc->snap_rwsem); in check_quota_exceeded()
349 down_read(&mdsc->snap_rwsem); in check_quota_exceeded()
400 up_read(&mdsc->snap_rwsem); in check_quota_exceeded()
487 down_read(&mdsc->snap_rwsem); in ceph_quota_update_statfs()
[all …]
Dsnap.c68 lockdep_assert_held(&mdsc->snap_rwsem); in ceph_get_snap_realm()
118 lockdep_assert_held_write(&mdsc->snap_rwsem); in ceph_create_snap_realm()
155 lockdep_assert_held(&mdsc->snap_rwsem); in __lookup_snap_realm()
190 lockdep_assert_held_write(&mdsc->snap_rwsem); in __destroy_snap_realm()
214 lockdep_assert_held_write(&mdsc->snap_rwsem); in __put_snap_realm()
233 if (down_write_trylock(&mdsc->snap_rwsem)) { in ceph_put_snap_realm()
236 up_write(&mdsc->snap_rwsem); in ceph_put_snap_realm()
254 lockdep_assert_held_write(&mdsc->snap_rwsem); in __cleanup_empty_realms()
272 down_write(&mdsc->snap_rwsem); in ceph_cleanup_global_and_empty_realms()
277 up_write(&mdsc->snap_rwsem); in ceph_cleanup_global_and_empty_realms()
[all …]
Dcaps.c1711 WARN_ON_ONCE(!rwsem_is_locked(&mdsc->snap_rwsem)); in __ceph_mark_dirty_caps()
2706 up_read(&mdsc->snap_rwsem); in try_get_cap_refs()
2753 if (!down_read_trylock(&mdsc->snap_rwsem)) { in try_get_cap_refs()
2764 down_read(&mdsc->snap_rwsem); in try_get_cap_refs()
2817 up_read(&mdsc->snap_rwsem); in try_get_cap_refs()
3330 __releases(session->s_mdsc->snap_rwsem) in handle_cap_grant()
3580 up_read(&session->s_mdsc->snap_rwsem); in handle_cap_grant()
3880 down_read(&mdsc->snap_rwsem); in handle_cap_export()
3944 up_read(&mdsc->snap_rwsem); in handle_cap_export()
3970 up_read(&mdsc->snap_rwsem); in handle_cap_export()
[all …]
Dxattr.c1198 if (!down_read_trylock(&mdsc->snap_rwsem)) { in __ceph_setxattr()
1200 down_read(&mdsc->snap_rwsem); in __ceph_setxattr()
1241 up_read(&mdsc->snap_rwsem); in __ceph_setxattr()
1251 up_read(&mdsc->snap_rwsem); in __ceph_setxattr()
Dmds_client.h417 struct rw_semaphore snap_rwsem; member
Dmds_client.c3353 down_write(&mdsc->snap_rwsem); in handle_reply()
3358 downgrade_write(&mdsc->snap_rwsem); in handle_reply()
3360 down_read(&mdsc->snap_rwsem); in handle_reply()
3375 up_read(&mdsc->snap_rwsem); in handle_reply()
4194 down_read(&mdsc->snap_rwsem); in send_mds_reconnect()
4285 up_read(&mdsc->snap_rwsem); in send_mds_reconnect()
4291 up_read(&mdsc->snap_rwsem); in send_mds_reconnect()
4780 init_rwsem(&mdsc->snap_rwsem); in ceph_mdsc_init()
Dinode.c781 lockdep_assert_held(&mdsc->snap_rwsem); in ceph_fill_inode()
2043 if (!down_read_trylock(&mdsc->snap_rwsem)) { in __ceph_setattr()
2045 down_read(&mdsc->snap_rwsem); in __ceph_setattr()
2201 up_read(&mdsc->snap_rwsem); in __ceph_setattr()
Daddr.c1745 down_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
1750 up_read(&fsc->mdsc->snap_rwsem); in ceph_uninline_data()
Dfile.c675 down_read(&mdsc->snap_rwsem); in ceph_finish_async_create()
678 up_read(&mdsc->snap_rwsem); in ceph_finish_async_create()