Lines Matching refs:gh
161 struct gfs2_holder gh; in gfs2_fileattr_get() local
168 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_fileattr_get()
169 error = gfs2_glock_nq(&gh); in gfs2_fileattr_get()
177 gfs2_glock_dq(&gh); in gfs2_fileattr_get()
179 gfs2_holder_uninit(&gh); in gfs2_fileattr_get()
223 struct gfs2_holder gh; in do_gfs2_set_flags() local
227 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags()
272 gfs2_glock_dq_uninit(&gh); in do_gfs2_set_flags()
424 struct gfs2_holder gh; in gfs2_page_mkwrite() local
431 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite()
432 err = gfs2_glock_nq(&gh); in gfs2_page_mkwrite()
538 gfs2_glock_dq(&gh); in gfs2_page_mkwrite()
540 gfs2_holder_uninit(&gh); in gfs2_page_mkwrite()
553 struct gfs2_holder gh; in gfs2_fault() local
557 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_fault()
558 err = gfs2_glock_nq(&gh); in gfs2_fault()
564 gfs2_glock_dq(&gh); in gfs2_fault()
566 gfs2_holder_uninit(&gh); in gfs2_fault()
803 struct gfs2_holder *gh) in gfs2_file_direct_read() argument
831 gfs2_holder_init(ip->i_gl, LM_ST_DEFERRED, 0, gh); in gfs2_file_direct_read()
833 ret = gfs2_glock_nq(gh); in gfs2_file_direct_read()
849 gfs2_holder_allow_demote(gh); in gfs2_file_direct_read()
851 gfs2_holder_disallow_demote(gh); in gfs2_file_direct_read()
853 if (!gfs2_holder_queued(gh)) in gfs2_file_direct_read()
858 if (gfs2_holder_queued(gh)) in gfs2_file_direct_read()
859 gfs2_glock_dq(gh); in gfs2_file_direct_read()
861 gfs2_holder_uninit(gh); in gfs2_file_direct_read()
868 struct gfs2_holder *gh) in gfs2_file_direct_write() argument
895 gfs2_holder_init(ip->i_gl, LM_ST_DEFERRED, 0, gh); in gfs2_file_direct_write()
897 ret = gfs2_glock_nq(gh); in gfs2_file_direct_write()
918 gfs2_holder_allow_demote(gh); in gfs2_file_direct_write()
920 gfs2_holder_disallow_demote(gh); in gfs2_file_direct_write()
922 if (!gfs2_holder_queued(gh)) in gfs2_file_direct_write()
928 if (gfs2_holder_queued(gh)) in gfs2_file_direct_write()
929 gfs2_glock_dq(gh); in gfs2_file_direct_write()
931 gfs2_holder_uninit(gh); in gfs2_file_direct_write()
940 struct gfs2_holder gh; in gfs2_file_read_iter() local
953 ret = gfs2_file_direct_read(iocb, to, &gh); in gfs2_file_read_iter()
972 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_file_read_iter()
974 ret = gfs2_glock_nq(&gh); in gfs2_file_read_iter()
987 gfs2_holder_allow_demote(&gh); in gfs2_file_read_iter()
989 gfs2_holder_disallow_demote(&gh); in gfs2_file_read_iter()
991 if (!gfs2_holder_queued(&gh)) { in gfs2_file_read_iter()
999 if (gfs2_holder_queued(&gh)) in gfs2_file_read_iter()
1000 gfs2_glock_dq(&gh); in gfs2_file_read_iter()
1002 gfs2_holder_uninit(&gh); in gfs2_file_read_iter()
1008 struct gfs2_holder *gh) in gfs2_file_buffered_write() argument
1033 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, gh); in gfs2_file_buffered_write()
1035 ret = gfs2_glock_nq(gh); in gfs2_file_buffered_write()
1065 gfs2_holder_allow_demote(gh); in gfs2_file_buffered_write()
1067 gfs2_holder_disallow_demote(gh); in gfs2_file_buffered_write()
1070 if (!gfs2_holder_queued(gh)) { in gfs2_file_buffered_write()
1079 if (gfs2_holder_queued(gh)) in gfs2_file_buffered_write()
1080 gfs2_glock_dq(gh); in gfs2_file_buffered_write()
1082 gfs2_holder_uninit(gh); in gfs2_file_buffered_write()
1105 struct gfs2_holder gh; in gfs2_file_write_iter() local
1111 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_file_write_iter()
1114 gfs2_glock_dq_uninit(&gh); in gfs2_file_write_iter()
1134 ret = gfs2_file_direct_write(iocb, from, &gh); in gfs2_file_write_iter()
1139 buffered = gfs2_file_buffered_write(iocb, from, &gh); in gfs2_file_write_iter()
1160 ret = gfs2_file_buffered_write(iocb, from, &gh); in gfs2_file_write_iter()
1367 struct gfs2_holder gh; in gfs2_fallocate() local
1378 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_fallocate()
1379 ret = gfs2_glock_nq(&gh); in gfs2_fallocate()
1404 gfs2_glock_dq(&gh); in gfs2_fallocate()
1406 gfs2_holder_uninit(&gh); in gfs2_fallocate()