lkml.org 
[lkml]   [2020]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] ovl: provide real_file() and overlayfs get_unmapped_area()
From
Date
On 6/10/20 7:17 PM, Al Viro wrote:
> On Wed, Jun 10, 2020 at 06:36:16PM -0700, Matthew Wilcox wrote:
>
>> while (file->f_mode & FMODE_OVL_UPPER)
>> file = file->private_data;
>> return file;
>>
>> Or are you proposing that overlayfs copy FMODE_HUGEPAGES from the
>> underlying fs to the overlaying fs?
>
> The latter - that way nobody outside of overlayfs needs to know what
> its ->private_data points to, for one thing. And it's cheaper that
> way, obviously.
>

Thanks Al and Matthew!

I knew adding a file op for this was overkill and was looking for other
suggestions.
--
Mike Kravetz

\
 
 \ /
  Last update: 2020-06-11 04:33    [W:0.279 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site