Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 31 Oct 2002 11:04:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 31 Oct 2002 11:02:38 -0500 Received: from thebsh.namesys.com ([212.16.7.65]:21777 "HELO thebsh.namesys.com") by vger.kernel.org with SMTP id ; Thu, 31 Oct 2002 11:02:24 -0500 From: Nikita Danilov MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15809.21557.995835.880171@laputa.namesys.com> Date: Thu, 31 Oct 2002 19:03:01 +0300 X-PGP-Fingerprint: 43CE 9384 5A1D CD75 5087 A876 A1AA 84D0 CCAA AC92 X-PGP-Key-ID: CCAAAC92 X-PGP-Key-At: http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xCCAAAC92 To: Linus Torvalds Cc: Linux Kernel Mailing List , Reiserfs mail-list Subject: [PATCH]: reiser4 [2/8] export generic_forget_inode() X-Mailer: VM 7.07 under 21.5 (beta6) "bok choi" XEmacs Lucid X-Emacs-Acronym: Exceptionally Mediocre Algorithm for Computer Scientists Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1862 Lines: 47 Hello, Linus, Following patch exports fs/inode.c:generic_forget_inode(). Without this, file system that needs ->drop_inode() super block method would have to duplicate manipulations with &inode_unused, inodes_stat, and &inode_lock. Please apply. Nikita. diff -rup -X dontdiff linus-bk-2.5/fs/inode.c linux-2.5-reiser4/fs/inode.c --- linus-bk-2.5/fs/inode.c Tue Oct 15 20:56:58 2002 +++ linux-2.5-reiser4/fs/inode.c Mon Oct 21 13:43:49 2002 @@ -938,7 +938,7 @@ void generic_delete_inode(struct inode * } EXPORT_SYMBOL(generic_delete_inode); -static void generic_forget_inode(struct inode *inode) +void generic_forget_inode(struct inode *inode) { struct super_block *sb = inode->i_sb; @@ -965,6 +965,7 @@ static void generic_forget_inode(struct clear_inode(inode); destroy_inode(inode); } +EXPORT_SYMBOL(generic_forget_inode); /* * Normal UNIX filesystem behaviour: delete the diff -rup -X dontdiff linus-bk-2.5/include/linux/fs.h linux-2.5-reiser4/include/linux/fs.h --- linus-bk-2.5/include/linux/fs.h Sat Oct 19 03:01:12 2002 +++ linux-2.5-reiser4/include/linux/fs.h Tue Oct 29 12:41:00 2002 @@ -1200,7 +1200,7 @@ extern struct inode * igrab(struct inode extern ino_t iunique(struct super_block *, ino_t); extern int inode_needs_sync(struct inode *inode); extern void generic_delete_inode(struct inode *inode); - +extern void generic_forget_inode(struct inode *inode); extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, int (*test)(struct inode *, void *), void *data); extern struct inode *ilookup(struct super_block *sb, unsigned long ino); - 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/