diff options
Diffstat (limited to 'include/linux/lockd/nlm.h')
-rw-r--r-- | include/linux/lockd/nlm.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/include/linux/lockd/nlm.h b/include/linux/lockd/nlm.h index ca606fca2..4bc44e7d9 100644 --- a/include/linux/lockd/nlm.h +++ b/include/linux/lockd/nlm.h @@ -9,6 +9,8 @@ #ifndef LINUX_LOCKD_NLM_H #define LINUX_LOCKD_NLM_H +#include <linux/config.h> + /* Maximum file offset in file_lock.fl_end */ #ifdef OFFSET_MAX # define NLM_OFFSET_MAX OFFSET_MAX @@ -18,11 +20,18 @@ /* Return states for NLM */ enum { - NLM_LCK_GRANTED = 0, - NLM_LCK_DENIED, - NLM_LCK_DENIED_NOLOCKS, - NLM_LCK_BLOCKED, - NLM_LCK_DENIED_GRACE_PERIOD, + NLM_LCK_GRANTED = 0, + NLM_LCK_DENIED = 1, + NLM_LCK_DENIED_NOLOCKS = 2, + NLM_LCK_BLOCKED = 3, + NLM_LCK_DENIED_GRACE_PERIOD = 4, +#ifdef CONFIG_LOCKD_V4 + NLM_DEADLCK = 5, + NLM_ROFS = 6, + NLM_STALE_FH = 7, + NLM_FBIG = 8, + NLM_FAILED = 9, +#endif }; #define NLM_PROGRAM 100021 |