diff options
Diffstat (limited to 'fs/afs/afs.h')
-rw-r--r-- | fs/afs/afs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/afs/afs.h b/fs/afs/afs.h index 245257948140..c548aa346f0d 100644 --- a/fs/afs/afs.h +++ b/fs/afs/afs.h | |||
@@ -37,6 +37,13 @@ typedef enum { | |||
37 | AFS_FTYPE_SYMLINK = 3, | 37 | AFS_FTYPE_SYMLINK = 3, |
38 | } afs_file_type_t; | 38 | } afs_file_type_t; |
39 | 39 | ||
40 | typedef enum { | ||
41 | AFS_LOCK_READ = 0, /* read lock request */ | ||
42 | AFS_LOCK_WRITE = 1, /* write lock request */ | ||
43 | } afs_lock_type_t; | ||
44 | |||
45 | #define AFS_LOCKWAIT (5 * 60) /* time until a lock times out (seconds) */ | ||
46 | |||
40 | /* | 47 | /* |
41 | * AFS file identifier | 48 | * AFS file identifier |
42 | */ | 49 | */ |
@@ -120,6 +127,7 @@ struct afs_file_status { | |||
120 | struct afs_fid parent; /* parent dir ID for non-dirs only */ | 127 | struct afs_fid parent; /* parent dir ID for non-dirs only */ |
121 | time_t mtime_client; /* last time client changed data */ | 128 | time_t mtime_client; /* last time client changed data */ |
122 | time_t mtime_server; /* last time server changed data */ | 129 | time_t mtime_server; /* last time server changed data */ |
130 | s32 lock_count; /* file lock count (0=UNLK -1=WRLCK +ve=#RDLCK */ | ||
123 | }; | 131 | }; |
124 | 132 | ||
125 | /* | 133 | /* |