Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 4 Feb 2002 13:50:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 4 Feb 2002 13:50:10 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:36625 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id ; Mon, 4 Feb 2002 13:49:14 -0500 Message-ID: <3C5ED7A6.C28407BA@mandrakesoft.com> Date: Mon, 04 Feb 2002 13:49:10 -0500 From: Jeff Garzik Organization: MandrakeSoft X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-pre4 i686) X-Accept-Language: en MIME-Version: 1.0 To: Joel Becker CC: Alan Cox , Steve Lord , Chris Wedgwood , Chris Mason , Andrea Arcangeli , Andrew Morton , Ricardo Galli , Linux Kernel , linux-fsdevel@vger.kernel.org Subject: Re: O_DIRECT fails in some kernel and FS In-Reply-To: <1012835730.26397.519.camel@jen.americas.sgi.com> <20020204182942.C2092@parcelfarce.linux.theplanet.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Joel Becker wrote: > should know the caches might be inconsistent. Large O_DIRECT users, > such as databases, already know this. They are happily ignorant of > cache inconsistencies. All they care about is hardsectsize O_DIRECT > operations. I have similar inclination, that is inspired from the implementation of "NTFS TNG": hard sector size should always equal sb->blocksize. This allows for fine-grained operations at the O_DIRECT level, logical block sizes > PAGE_CACHE_SIZE, easy implementation of fragments (>= hard sect size), O_DIRECT for fragments, and other stuff. This works right now in 2.4 and 2.5 with no modification to the VFS core. Jeff -- Jeff Garzik | "I went through my candy like hot oatmeal Building 1024 | through an internally-buttered weasel." MandrakeSoft | - goats.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/