|
@@ -1236,7 +1236,7 @@ static void encode_link(struct xdr_stream *xdr, const struct qstr *name, struct
|
|
|
|
|
|
static inline int nfs4_lock_type(struct file_lock *fl, int block)
|
|
static inline int nfs4_lock_type(struct file_lock *fl, int block)
|
|
{
|
|
{
|
|
- if ((fl->fl_type & (F_RDLCK|F_WRLCK|F_UNLCK)) == F_RDLCK)
|
|
|
|
|
|
+ if (fl->fl_type == F_RDLCK)
|
|
return block ? NFS4_READW_LT : NFS4_READ_LT;
|
|
return block ? NFS4_READW_LT : NFS4_READ_LT;
|
|
return block ? NFS4_WRITEW_LT : NFS4_WRITE_LT;
|
|
return block ? NFS4_WRITEW_LT : NFS4_WRITE_LT;
|
|
}
|
|
}
|