]> git.baikalelectronics.ru Git - kernel.git/commit
fs/locks: rename some lists and pointers.
authorNeilBrown <neilb@suse.com>
Thu, 29 Nov 2018 23:04:08 +0000 (10:04 +1100)
committerJeff Layton <jlayton@kernel.org>
Fri, 30 Nov 2018 16:26:12 +0000 (11:26 -0500)
commitbb5522b02968270766d7678a954cef449e625246
treec1579a9a4924fa11b6fc49cc9bdb7e5f3e59aae4
parent996d957f5298329c7984d90e790cf3b2f783bef0
fs/locks: rename some lists and pointers.

struct file lock contains an 'fl_next' pointer which
is used to point to the lock that this request is blocked
waiting for.  So rename it to fl_blocker.

The fl_blocked list_head in an active lock is the head of a list of
blocked requests.  In a request it is a node in that list.
These are two distinct uses, so replace with two list_heads
with different names.
fl_blocked_requests is the head of a list of blocked requests
fl_blocked_member is a node in a member of that list.

The two different list_heads are never used at the same time, but that
will change in a future patch.

Note that a tracepoint is changed to report fl_blocker instead
of fl_next.

Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/cifs/file.c
fs/locks.c
include/linux/fs.h
include/trace/events/filelock.h