From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 3/28] VFS: Move expiry into vfs Date: Mon, 25 Oct 2004 15:59:17 +0100 Sender: linux-kernel-owner@vger.kernel.org Message-ID: <20041025145917.GA1492@infradead.org> References: <10987151702831@sun.com> <10987152003432@sun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, raven@themaw.net Return-path: To: Mike Waychison Content-Disposition: inline In-Reply-To: <10987152003432@sun.com> List-Id: linux-fsdevel.vger.kernel.org On Mon, Oct 25, 2004 at 10:40:00AM -0400, Mike Waychison wrote: > This patch moves the recently added expiry functionality directly into the > VFS layer. Doing this gives us a couple advantages: > > - Allows for configurable timeouts using a single consolidated timer > - Keeps filesystems from having to each implement their own expiry logic > - Provides a generic interface that can be used for _any_ filesystem, as > desired by user applications and/or the system admninistrator. > > This patch implements expiry by having the VFS recursively register work to > do. Checks are done for expiry every 1 second, so expiry is configurable to > that granularity. The expiry timer should only run as long as there are filesystems registered for expiry.