From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Xin Zhao" Subject: How long can an inode structure reside in the inode_cache? Date: Fri, 9 Jun 2006 20:10:10 -0400 Message-ID: <4ae3c140606091710k7a320f2ex6390d0e01da4de9b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from py-out-1112.google.com ([64.233.166.177]:25315 "EHLO py-out-1112.google.com") by vger.kernel.org with ESMTP id S932593AbWFJAKL (ORCPT ); Fri, 9 Jun 2006 20:10:11 -0400 Received: by py-out-1112.google.com with SMTP id x31so1113048pye for ; Fri, 09 Jun 2006 17:10:10 -0700 (PDT) To: linux-kernel Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org I was wondering how Linux decide to free an inode from the inode_cache? If a file is open, an inode structure will be created and put into the inode_cache, but when will this inode be free and removed from the inode_cache? after this file is closed? If so, this seems to be inefficient. Can someone tell me how Linux handle this issue? Thanks, Xin