F_WRLCK
int type = excl ? F_WRLCK : F_RDLCK;
case F_WRLCK:
fl->c.flc_type = F_WRLCK;
type = F_WRLCK;
fl->c.flc_type = F_WRLCK;
fl->c.flc_type = F_WRLCK;
case F_WRLCK:
fl->c.flc_type = (op->info.ex) ? F_WRLCK : F_RDLCK;
case F_WRLCK:
fl->c.flc_type = exclusive != 0 ? F_WRLCK : F_RDLCK;
encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK);
encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK);
encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK);
fl->c.flc_type = exclusive != 0 ? F_WRLCK : F_RDLCK;
encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK);
encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK);
encode_bool(xdr, lock->fl.c.flc_type == F_WRLCK);
argp->lock.fl.c.flc_type = F_WRLCK;
argp->lock.fl.c.flc_type = F_WRLCK;
argp->lock.fl.c.flc_type = F_WRLCK;
argp->lock.fl.c.flc_type = F_WRLCK;
argp->lock.fl.c.flc_type = F_WRLCK;
argp->lock.fl.c.flc_type = F_WRLCK;
new_fl = lease_alloc(NULL, type, want_write ? F_WRLCK : F_RDLCK);
if (flc && flc->flc_type == F_WRLCK)
if (arg == F_WRLCK)
case F_WRLCK:
&& flock->l_type != F_WRLCK)
case F_WRLCK:
&& flock->l_type != F_WRLCK)
seq_printf(f, "%s ", (type == F_WRLCK) ? "WRITE" :
return F_WRLCK;
case F_WRLCK:
else if (arg != F_WRLCK)
if (sys_flc->flc_type == F_WRLCK)
if (caller_flc->flc_type == F_WRLCK)
case F_WRLCK:
case F_WRLCK:
fl->c.flc_type = F_WRLCK;
fl->c.flc_type = deleg_is_read(dp->dl_type) ? F_RDLCK : F_WRLCK;
type = F_WRLCK;
file_lock->c.flc_type = F_WRLCK;
if (fl->c.flc_type == F_WRLCK) {
((arg == F_WRLCK) && CIFS_CACHE_WRITE(CIFS_I(inode))))
pLockData->c.flc_type = F_WRLCK;
flock->c.flc_type = F_WRLCK;
flock->c.flc_type = F_WRLCK;
flock->c.flc_type = F_WRLCK;
flock->c.flc_type = F_WRLCK;
flock->c.flc_type = F_WRLCK;
return fl->c.flc_type == F_WRLCK;
EM(F_WRLCK, "WRLCK") \
{ F_WRLCK, "F_WRLCK" }, \
{ F_WRLCK, "WRLCK" }, \
if (cmd == F_WRLCK)
struct flock fl = {F_WRLCK, SEEK_SET, 0, 0, 0};
fl.l_type = F_WRLCK;