diff options
Diffstat (limited to 'fs/ocfs2/ocfs2_lockid.h')
| -rw-r--r-- | fs/ocfs2/ocfs2_lockid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_lockid.h b/fs/ocfs2/ocfs2_lockid.h index 82c200f7a8f1..eb6f50c9ceca 100644 --- a/fs/ocfs2/ocfs2_lockid.h +++ b/fs/ocfs2/ocfs2_lockid.h | |||
| @@ -46,6 +46,7 @@ enum ocfs2_lock_type { | |||
| 46 | OCFS2_LOCK_TYPE_DENTRY, | 46 | OCFS2_LOCK_TYPE_DENTRY, |
| 47 | OCFS2_LOCK_TYPE_OPEN, | 47 | OCFS2_LOCK_TYPE_OPEN, |
| 48 | OCFS2_LOCK_TYPE_FLOCK, | 48 | OCFS2_LOCK_TYPE_FLOCK, |
| 49 | OCFS2_LOCK_TYPE_QINFO, | ||
| 49 | OCFS2_NUM_LOCK_TYPES | 50 | OCFS2_NUM_LOCK_TYPES |
| 50 | }; | 51 | }; |
| 51 | 52 | ||
| @@ -77,6 +78,9 @@ static inline char ocfs2_lock_type_char(enum ocfs2_lock_type type) | |||
| 77 | case OCFS2_LOCK_TYPE_FLOCK: | 78 | case OCFS2_LOCK_TYPE_FLOCK: |
| 78 | c = 'F'; | 79 | c = 'F'; |
| 79 | break; | 80 | break; |
| 81 | case OCFS2_LOCK_TYPE_QINFO: | ||
| 82 | c = 'Q'; | ||
| 83 | break; | ||
| 80 | default: | 84 | default: |
| 81 | c = '\0'; | 85 | c = '\0'; |
| 82 | } | 86 | } |
| @@ -95,6 +99,7 @@ static char *ocfs2_lock_type_strings[] = { | |||
| 95 | [OCFS2_LOCK_TYPE_DENTRY] = "Dentry", | 99 | [OCFS2_LOCK_TYPE_DENTRY] = "Dentry", |
| 96 | [OCFS2_LOCK_TYPE_OPEN] = "Open", | 100 | [OCFS2_LOCK_TYPE_OPEN] = "Open", |
| 97 | [OCFS2_LOCK_TYPE_FLOCK] = "Flock", | 101 | [OCFS2_LOCK_TYPE_FLOCK] = "Flock", |
| 102 | [OCFS2_LOCK_TYPE_QINFO] = "Quota", | ||
| 98 | }; | 103 | }; |
| 99 | 104 | ||
| 100 | static inline const char *ocfs2_lock_type_string(enum ocfs2_lock_type type) | 105 | static inline const char *ocfs2_lock_type_string(enum ocfs2_lock_type type) |
