Home
last modified time | relevance | path

Searched refs:trylock (Results 1 – 5 of 5) sorted by relevance

/fs/ocfs2/
Dlocks.c41 int ret = 0, level = 0, trylock = 0; in ocfs2_do_flock() local
48 trylock = 1; in ocfs2_do_flock()
75 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
77 if (ret == -EAGAIN && trylock) in ocfs2_do_flock()
Ddlmglue.h151 int ocfs2_file_lock(struct file *file, int ex, int trylock);
Ddlmglue.c1840 int ocfs2_file_lock(struct file *file, int ex, int trylock) in ocfs2_file_lock() argument
1843 unsigned int lkm_flags = trylock ? DLM_LKF_NOQUEUE : 0; in ocfs2_file_lock()
1895 if (!trylock || (ret != -EAGAIN)) { in ocfs2_file_lock()
1925 BUG_ON(!trylock); in ocfs2_file_lock()
1932 lockres->l_name, ex, trylock, ret); in ocfs2_file_lock()
/fs/xfs/
Dxfs_filestream.c216 int err, trylock, nscan; in _xfs_filestream_pick_ag() local
228 trylock = XFS_ALLOC_FLAG_TRYLOCK; in _xfs_filestream_pick_ag()
235 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock); in _xfs_filestream_pick_ag()
236 if (err && !trylock) { in _xfs_filestream_pick_ag()
291 if (trylock != 0) { in _xfs_filestream_pick_ag()
292 trylock = 0; in _xfs_filestream_pick_ag()
Dxfs_sync.c907 int trylock = flags & SYNC_TRYLOCK; in xfs_reclaim_inodes_ag() local
920 if (trylock) { in xfs_reclaim_inodes_ag()
995 if (trylock && !done) in xfs_reclaim_inodes_ag()
1011 trylock = 0; in xfs_reclaim_inodes_ag()