aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2015-01-16 15:05:57 -0500
committerJeff Layton <jeff.layton@primarydata.com>2015-01-16 16:08:50 -0500
commit9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb (patch)
tree205f3c2107cec0323dc25c959fefcc4fd709fa49 /include/linux
parent7448cc37b1a6b620d948aaee3bb30960c06d5d5d (diff)
locks: keep a count of locks on the flctx lists
This makes things a bit more efficient in the cifs and ceph lock pushing code. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Acked-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 94e706a0a408..f87cb2f03103 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -972,6 +972,9 @@ struct file_lock_context {
972 struct list_head flc_flock; 972 struct list_head flc_flock;
973 struct list_head flc_posix; 973 struct list_head flc_posix;
974 struct list_head flc_lease; 974 struct list_head flc_lease;
975 int flc_flock_cnt;
976 int flc_posix_cnt;
977 int flc_lease_cnt;
975}; 978};
976 979
977/* The following constant reflects the upper bound of the file/locking space */ 980/* The following constant reflects the upper bound of the file/locking space */