OSDN Git Service

block: store the holder in file->private_data
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Jun 2023 11:02:57 +0000 (13:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jun 2023 14:04:05 +0000 (08:04 -0600)
commitee3249a8ce78ef014a71b05157a43fba8dc764e3
treeb7abc4d3984baa442590cb06c8df8ae94f5ccdf0
parent4e762d8623448bb9d32711832ce977a65ff7636a
block: store the holder in file->private_data

Store the file struct used as the holder in file->private_data as an
indicator that this file descriptor was opened exclusively to  remove
the last use of FMODE_EXCL.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20230608110258.189493-30-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c