Content-Type: multipart/mixed; boundary="===============7857392069795143052==" MIME-Version: 1.0 From: Mike Kravetz To: kbuild-all@lists.01.org Subject: Re: [PATCH v2] ovl: provide real_file() and overlayfs get_unmapped_area() Date: Wed, 10 Jun 2020 19:31:57 -0700 Message-ID: <1bfea970-00f5-502c-3ced-4ebe7fd3eef1@oracle.com> In-Reply-To: <20200611021710.GA23230@ZenIV.linux.org.uk> List-Id: --===============7857392069795143052== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 =3D 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 --===============7857392069795143052==--