diff options
author | Jeff Layton <jlayton@primarydata.com> | 2015-01-16 21:05:57 +0100 |
---|---|---|
committer | Jeff Layton <jeff.layton@primarydata.com> | 2015-01-16 22:08:50 +0100 |
commit | 9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb (patch) | |
tree | 205f3c2107cec0323dc25c959fefcc4fd709fa49 /include | |
parent | locks: clean up the lm_change prototype (diff) | |
download | linux-9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb.tar.xz 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')
-rw-r--r-- | include/linux/fs.h | 3 |
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 */ |