fl->fl_type = type;
fl->fl_end = OFFSET_MAX;
- vxd_assert(filp->f_xid == vx_current_xid(),
- "f_xid(%d) == current(%d)", filp->f_xid, vx_current_xid());
fl->fl_xid = filp->f_xid;
vx_locks_inc(fl);
goto out;
fl->fl_xid = vx_current_xid();
- if (filp)
- vxd_assert(filp->f_xid == fl->fl_xid,
- "f_xid(%d) == fl_xid(%d)", filp->f_xid, fl->fl_xid);
vx_locks_inc(fl);
error = lease_init(filp, type, fl);
if (error) {
struct file_lock **before;
int error, added = 0;
- vxd_assert(xid == vx_current_xid(),
- "xid(%d) == current(%d)", xid, vx_current_xid());
/*
* We may need two file_lock structures for this operation,
* so we get them in advance to avoid races.
if (file_lock == NULL)
return -ENOLCK;
- vxd_assert(filp->f_xid == vx_current_xid(),
- "f_xid(%d) == current(%d)", filp->f_xid, vx_current_xid());
file_lock->fl_xid = filp->f_xid;
vx_locks_inc(file_lock);
if (file_lock == NULL)
return -ENOLCK;
- vxd_assert(filp->f_xid == vx_current_xid(),
- "f_xid(%d) == current(%d)", filp->f_xid, vx_current_xid());
file_lock->fl_xid = filp->f_xid;
vx_locks_inc(file_lock);