locks: keep a count of locks on the flctx lists
authorJeff Layton <jlayton@primarydata.com>
Fri, 16 Jan 2015 20:05:57 +0000 (15:05 -0500)
committerJeff Layton <jeff.layton@primarydata.com>
Fri, 16 Jan 2015 21:08:50 +0000 (16:08 -0500)
commit9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb
tree205f3c2107cec0323dc25c959fefcc4fd709fa49
parent7448cc37b1a6b620d948aaee3bb30960c06d5d5d
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>
fs/ceph/locks.c
fs/cifs/file.c
fs/locks.c
include/linux/fs.h