Re: [PATCH 15/39] ovl: add helper to return real file

2018-06-11 Thread Miklos Szeredi
On Sun, Jun 10, 2018 at 7:42 AM, Al Viro wrote: > On Tue, May 29, 2018 at 04:43:15PM +0200, Miklos Szeredi wrote: >> In the common case we can just use the real file cached in >> file->private_data. There are two exceptions: >> >> 1) File has been copied up since open: in this unlikely corner cas

Re: [PATCH 15/39] ovl: add helper to return real file

2018-06-09 Thread Al Viro
On Tue, May 29, 2018 at 04:43:15PM +0200, Miklos Szeredi wrote: > In the common case we can just use the real file cached in > file->private_data. There are two exceptions: > > 1) File has been copied up since open: in this unlikely corner case just > use a throwaway real file for the operation.

[PATCH 15/39] ovl: add helper to return real file

2018-05-29 Thread Miklos Szeredi
In the common case we can just use the real file cached in file->private_data. There are two exceptions: 1) File has been copied up since open: in this unlikely corner case just use a throwaway real file for the operation. If ever this becomes a perfomance problem (very unlikely, since overlayfs