Re: tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-18 Thread Darrick J. Wong
On Mon, Feb 18, 2019 at 08:23:20PM -0800, Hugh Dickins wrote: > On Fri, 15 Feb 2019, Hugh Dickins wrote: > > On Thu, 14 Feb 2019, Darrick J. Wong wrote: > > > > On Mon, 11 Feb 2019 15:18:11 +0100 Matej Kupljen > > > > wrote: > > > > > > > > > > it seems that when opening file on file system

Re: tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-18 Thread Hugh Dickins
On Fri, 15 Feb 2019, Hugh Dickins wrote: > On Thu, 14 Feb 2019, Darrick J. Wong wrote: > > > On Mon, 11 Feb 2019 15:18:11 +0100 Matej Kupljen > > > wrote: > > > > > > > > it seems that when opening file on file system that is mounted on > > > > tmpfs with the O_TMPFILE flag and using linkat

Re: tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-15 Thread Hugh Dickins
On Thu, 14 Feb 2019, Darrick J. Wong wrote: > [cc the shmem maintainer and the mm list] Yup, thanks - Matej also did so the day after sending to linux-kernel. > > On Thu, Feb 14, 2019 at 03:44:02PM -0800, Andrew Morton wrote: > > (cc linux-fsdevel) Okay, thanks, but a tmpfs peculiarity we

Re: tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-14 Thread Darrick J. Wong
[cc the shmem maintainer and the mm list] On Thu, Feb 14, 2019 at 03:44:02PM -0800, Andrew Morton wrote: > (cc linux-fsdevel) > > On Mon, 11 Feb 2019 15:18:11 +0100 Matej Kupljen > wrote: > > > Hi, > > > > it seems that when opening file on file system that is mounted on > > tmpfs with the

Re: tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-14 Thread Andrew Morton
(cc linux-fsdevel) On Mon, 11 Feb 2019 15:18:11 +0100 Matej Kupljen wrote: > Hi, > > it seems that when opening file on file system that is mounted on > tmpfs with the O_TMPFILE flag and using linkat call after that, it > uses 2 inodes instead of 1. > > This is simple test case: > >

tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-11 Thread Matej Kupljen
Hi, it seems that when opening file on file system that is mounted on tmpfs with the O_TMPFILE flag and using linkat call after that, it uses 2 inodes instead of 1. This is simple test case: #include #include #include #include #include #include #include #include #include #define