summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-21 10:32:39 -0700
committerJens Axboe <axboe@kernel.dk>2019-02-28 08:24:23 -0700
commit091141a42e15fe47ada737f3996b317072afcefb (patch)
treed7a89e516c2e1064841dfa938cf043b5c4572675 /certs
parentdef596e9557c91d9846fc4d84d26f2c564644416 (diff)
downloadlwn-091141a42e15fe47ada737f3996b317072afcefb.tar.gz
lwn-091141a42e15fe47ada737f3996b317072afcefb.zip
fs: add fget_many() and fput_many()
Some uses cases repeatedly get and put references to the same file, but the only exposed interface is doing these one at the time. As each of these entail an atomic inc or dec on a shared structure, that cost can add up. Add fget_many(), which works just like fget(), except it takes an argument for how many references to get on the file. Ditto fput_many(), which can drop an arbitrary number of references to a file. Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions