Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 31 Dec 2001 14:01:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 31 Dec 2001 14:01:28 -0500 Received: from garrincha.netbank.com.br ([200.203.199.88]:8970 "HELO netbank.com.br") by vger.kernel.org with SMTP id ; Mon, 31 Dec 2001 14:01:25 -0500 Date: Mon, 31 Dec 2001 17:01:25 -0200 From: Arnaldo Carvalho de Melo To: Linus Torvalds Cc: Daniel Phillips , , Alexander Viro , Subject: Re: [RFC] [WIP] Unbork fs.h, 3 of 3 Message-ID: <20011231170125.B15954@conectiva.com.br> Mail-Followup-To: Arnaldo Carvalho de Melo , Linus Torvalds , Daniel Phillips , , Alexander Viro , In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-Url: http://advogato.org/person/acme Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Dec 31, 2001 at 10:16:14AM -0800, Linus Torvalds escreveu: > How about using a descriptor structure instead of the macro, and making > the filesystem declaration syntax look more like > > static struct file_system_type ext2_descriptor = { > owner: THIS_MODULE, > fs_flags: FS_REQUIRES_DEV, > name: "ext2", > read_super: ext2_read_super, > sb_size: sizeof(ext2_sb_info), > inode_size: sizeof(struct ext2_inode_info) > }; > > which is more readable, and inherently documents _what_ those things are. Agreed, this is how the other structs of similar purpose (proto_opts, net_proto_family, etc) are initialized. - Arnaldo - 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/