File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -180,9 +180,6 @@ static inline void locks_wake_up(struct file_lock *fl)
180
180
wake_up (& fl -> c .flc_wait );
181
181
}
182
182
183
- /* for walking lists of file_locks linked by fl_list */
184
- #define for_each_file_lock (_fl , _head ) list_for_each_entry(_fl, _head, c.flc_list)
185
-
186
183
/* fs/locks.c */
187
184
void locks_free_lock_context (struct inode * inode );
188
185
void locks_free_lock (struct file_lock * fl );
@@ -283,8 +280,6 @@ static inline void locks_wake_up(struct file_lock *fl)
283
280
{
284
281
}
285
282
286
- #define for_each_file_lock (_fl , _head ) while(false)
287
-
288
283
static inline void
289
284
locks_free_lock_context (struct inode * inode )
290
285
{
@@ -414,6 +409,9 @@ locks_inode_context(const struct inode *inode)
414
409
415
410
#endif /* !CONFIG_FILE_LOCKING */
416
411
412
+ /* for walking lists of file_locks linked by fl_list */
413
+ #define for_each_file_lock (_fl , _head ) list_for_each_entry(_fl, _head, c.flc_list)
414
+
417
415
static inline int locks_lock_file_wait (struct file * filp , struct file_lock * fl )
418
416
{
419
417
return locks_lock_inode_wait (file_inode (filp ), fl );
You can’t perform that action at this time.
0 commit comments