aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJim Garlick <garlick.jim@gmail.com>2011-08-20 14:51:18 -0400
committerHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>2011-10-17 13:32:46 -0400
commit9377e4543b30c34821a50caa720192eb5c260682 (patch)
treefbea834115171d8748a9fc4d6e2b6e856a28c976 /include/net
parentfbfd4037879c653fe4b9e04e3e1d1e3abf880a62 (diff)
fs/9p: Use protocol-defined value for lock/getlock 'type' field.
BugLink: http://bugs.launchpad.net/bugs/868628 commit 51b8b4fb32271d39fbdd760397406177b2b0fd36 upstream. Signed-off-by: Jim Garlick <garlick@llnl.gov> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/9p/9p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h
index a8d613fda7d..32f67c39690 100644
--- a/include/net/9p/9p.h
+++ b/include/net/9p/9p.h
@@ -344,6 +344,11 @@ enum p9_qid_t {
344/* Room for readdir header */ 344/* Room for readdir header */
345#define P9_READDIRHDRSZ 24 345#define P9_READDIRHDRSZ 24
346 346
347/* 9p2000.L lock type */
348#define P9_LOCK_TYPE_RDLCK 0
349#define P9_LOCK_TYPE_WRLCK 1
350#define P9_LOCK_TYPE_UNLCK 2
351
347/** 352/**
348 * struct p9_str - length prefixed string type 353 * struct p9_str - length prefixed string type
349 * @len: length of the string 354 * @len: length of the string