From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Stornelli Subject: O_TMPFILE problem Date: Sun, 28 Jul 2013 18:35:12 +0200 Message-ID: <51F54840.3020407@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: Al Viro , Linux Kernel , Linux FS Devel Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi, I'm doing a couple of test about O_TMPFILE on my fs. I can see that when the file is closed the blocks allocated are not freed. It happens because of i_mode, it isn't a regular file nor a directory nor a link. I added S_IFREG in my implementation of tmpfile callback when I have to call new_inode() and now it works, but am I missing something here? Marco