Home
last modified time | relevance | path

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

/openbmc/linux/fs/ceph/
H A Dlocks.c397 struct ceph_filelock *cephlock) in lock_to_ceph_filelock() argument
400 cephlock->start = cpu_to_le64(lock->fl_start); in lock_to_ceph_filelock()
401 cephlock->length = cpu_to_le64(lock->fl_end - lock->fl_start + 1); in lock_to_ceph_filelock()
402 cephlock->client = cpu_to_le64(0); in lock_to_ceph_filelock()
403 cephlock->pid = cpu_to_le64((u64)lock->fl_pid); in lock_to_ceph_filelock()
404 cephlock->owner = cpu_to_le64(secure_addr(lock->fl_owner)); in lock_to_ceph_filelock()
408 cephlock->type = CEPH_LOCK_SHARED; in lock_to_ceph_filelock()
411 cephlock->type = CEPH_LOCK_EXCL; in lock_to_ceph_filelock()
414 cephlock->type = CEPH_LOCK_UNLOCK; in lock_to_ceph_filelock()