[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1bfea970-00f5-502c-3ced-4ebe7fd3eef1@oracle.com>
Date: Wed, 10 Jun 2020 19:31:57 -0700
From: Mike Kravetz <mike.kravetz@...cle.com>
To: Al Viro <viro@...iv.linux.org.uk>,
Matthew Wilcox <willy@...radead.org>
Cc: Miklos Szeredi <miklos@...redi.hu>,
kbuild test robot <lkp@...el.com>, kbuild-all@...ts.01.org,
Colin Walters <walters@...bum.org>,
syzbot <syzbot+d6ec23007e951dadf3de@...kaller.appspotmail.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
syzkaller-bugs <syzkaller-bugs@...glegroups.com>,
overlayfs <linux-unionfs@...r.kernel.org>
Subject: Re: [PATCH v2] ovl: provide real_file() and overlayfs
get_unmapped_area()
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
Powered by blists - more mailing lists