summaryrefslogtreecommitdiff
path: root/net/9p/trans_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/9p/trans_common.h')
-rw-r--r--net/9p/trans_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/9p/trans_common.h b/net/9p/trans_common.h
index 04977e0ad938..76309223bb02 100644
--- a/net/9p/trans_common.h
+++ b/net/9p/trans_common.h
@@ -12,6 +12,9 @@
*
*/
+/* TRUE if it is user context */
+#define P9_IS_USER_CONTEXT (!segment_eq(get_fs(), KERNEL_DS))
+
/**
* struct trans_rpage_info - To store mapped page information in PDU.
* @rp_alloc:Set if this structure is allocd, not a reuse unused space in pdu.