From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: O_DIRECT on tmpfs (again) Date: Tue, 27 Nov 2012 11:03:03 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org To: Hugh Dickins Return-path: Received: from mx1.redhat.com ([209.132.183.28]:63594 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755373Ab2K0QDI (ORCPT ); Tue, 27 Nov 2012 11:03:08 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Hugh and others, In 2007, there were some discussions on whether to allow opens to specify O_DIRECT for files backed by tmpfs.[1][2] On the surface, it sounds like a completely crazy thing to do. However, distributions like Fedora are now defaulting to using a tmpfs /tmp. I'm not aware of any applications that open temp files using O_DIRECT, but I wanted to get some new discussion going on whether this is a reasonable thing to expect to work. Thoughts? Cheers, Jeff [1] https://lkml.org/lkml/2007/1/4/55 [2] http://thread.gmane.org/gmane.linux.kernel/482031