summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJeff Layton2015-01-16 21:05:57 +0100
committerJeff Layton2015-01-16 22:08:50 +0100
commit9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb (patch)
tree205f3c2107cec0323dc25c959fefcc4fd709fa49 /include/linux/fs.h
parentlocks: clean up the lm_change prototype (diff)
downloadkernel-qcow2-linux-9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb.tar.gz
kernel-qcow2-linux-9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb.tar.xz
kernel-qcow2-linux-9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb.zip
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/fs.h')
-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 {
struct list_head flc_flock;
struct list_head flc_posix;
struct list_head flc_lease;
+ int flc_flock_cnt;
+ int flc_posix_cnt;
+ int flc_lease_cnt;
};
/* The following constant reflects the upper bound of the file/locking space */