Go to the source code of this file.
|
int | ceph_lock (struct file *file, int cmd, struct file_lock *fl) |
|
int | ceph_flock (struct file *file, int cmd, struct file_lock *fl) |
|
void | ceph_count_locks (struct inode *inode, int *fcntl_count, int *flock_count) |
|
int | ceph_encode_locks (struct inode *inode, struct ceph_pagelist *pagelist, int num_fcntl_locks, int num_flock_locks) |
|
int | lock_to_ceph_filelock (struct file_lock *lock, struct ceph_filelock *cephlock) |
|
Must be called with BKL already held. Fills in the passed counter variables, so you can prepare pagelist metadata before calling ceph_encode_locks.
Definition at line 176 of file locks.c.
Encode the flock and fcntl locks for the given inode into the pagelist. Format is: #fcntl locks, sequential fcntl locks, flock locks, sequential flock locks. Must be called with lock_flocks() already held. If we encounter more of a specific lock type than expected, we return the value 1.
Definition at line 201 of file locks.c.
Attempt to set an fcntl lock. For now, this just goes away to the server. Later it may be more awesome.
Definition at line 83 of file locks.c.