diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/fcntl.h | 5 | ||||
| -rw-r--r-- | include/linux/fs.h | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/include/asm-generic/fcntl.h b/include/asm-generic/fcntl.h index 84793c7025e2..9e5b0356e2bb 100644 --- a/include/asm-generic/fcntl.h +++ b/include/asm-generic/fcntl.h | |||
| @@ -145,11 +145,6 @@ struct f_owner_ex { | |||
| 145 | #define F_SHLCK 8 /* or 4 */ | 145 | #define F_SHLCK 8 /* or 4 */ |
| 146 | #endif | 146 | #endif |
| 147 | 147 | ||
| 148 | /* for leases */ | ||
| 149 | #ifndef F_INPROGRESS | ||
| 150 | #define F_INPROGRESS 16 | ||
| 151 | #endif | ||
| 152 | |||
| 153 | /* operations for bsd flock(), also used by the kernel implementation */ | 148 | /* operations for bsd flock(), also used by the kernel implementation */ |
| 154 | #define LOCK_SH 1 /* shared lock */ | 149 | #define LOCK_SH 1 /* shared lock */ |
| 155 | #define LOCK_EX 2 /* exclusive lock */ | 150 | #define LOCK_EX 2 /* exclusive lock */ |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 178cdb4f1d4a..327fdd4de85f 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1065,6 +1065,7 @@ static inline int file_check_writeable(struct file *filp) | |||
| 1065 | #define FL_LEASE 32 /* lease held on this file */ | 1065 | #define FL_LEASE 32 /* lease held on this file */ |
| 1066 | #define FL_CLOSE 64 /* unlock on close */ | 1066 | #define FL_CLOSE 64 /* unlock on close */ |
| 1067 | #define FL_SLEEP 128 /* A blocking lock */ | 1067 | #define FL_SLEEP 128 /* A blocking lock */ |
| 1068 | #define FL_INPROGRESS 256 /* Lease is being broken */ | ||
| 1068 | 1069 | ||
| 1069 | /* | 1070 | /* |
| 1070 | * Special return value from posix_lock_file() and vfs_lock_file() for | 1071 | * Special return value from posix_lock_file() and vfs_lock_file() for |
| @@ -1111,7 +1112,7 @@ struct file_lock { | |||
| 1111 | struct list_head fl_link; /* doubly linked list of all locks */ | 1112 | struct list_head fl_link; /* doubly linked list of all locks */ |
| 1112 | struct list_head fl_block; /* circular list of blocked processes */ | 1113 | struct list_head fl_block; /* circular list of blocked processes */ |
| 1113 | fl_owner_t fl_owner; | 1114 | fl_owner_t fl_owner; |
| 1114 | unsigned char fl_flags; | 1115 | unsigned int fl_flags; |
| 1115 | unsigned char fl_type; | 1116 | unsigned char fl_type; |
| 1116 | unsigned int fl_pid; | 1117 | unsigned int fl_pid; |
| 1117 | struct pid *fl_nspid; | 1118 | struct pid *fl_nspid; |
