[dm-devel] [PATCH 30/31] block: store the holder in file->private_data

2023-06-06 Thread Christoph Hellwig
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 --- block/fops.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --gi

Re: [dm-devel] [PATCH 30/31] block: store the holder in file->private_data

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:49AM +0200, Christoph Hellwig wrote: > 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 > --- Feels a bit o

Re: [dm-devel] [PATCH 30/31] block: store the holder in file->private_data

2023-06-07 Thread Christoph Hellwig
On Wed, Jun 07, 2023 at 11:24:55AM +0200, Christian Brauner wrote: > On Tue, Jun 06, 2023 at 09:39:49AM +0200, Christoph Hellwig wrote: > > 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

Re: [dm-devel] [PATCH 30/31] block: store the holder in file->private_data

2023-06-07 Thread Hannes Reinecke
On 6/6/23 09:39, Christoph Hellwig wrote: 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 --- block/fops.c | 14 -- 1 file chang