27 #include <linux/fcntl.h>
59 if (
level == old_level)
77 if (ret == -
EAGAIN && trylock)
92 static int ocfs2_do_funlock(
struct file *file,
int cmd,
struct file_lock *fl)
110 struct inode *inode = file->
f_mapping->host;
115 if (__mandatory_lock(inode))
119 ocfs2_mount_local(osb))
123 return ocfs2_do_funlock(file, cmd, fl);
125 return ocfs2_do_flock(file, inode, cmd, fl);
130 struct inode *inode = file->
f_mapping->host;