Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Nov 2002 19:01:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Nov 2002 19:01:00 -0500 Received: from hera.cwi.nl ([192.16.191.8]:61874 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id ; Wed, 20 Nov 2002 19:00:59 -0500 From: Andries.Brouwer@cwi.nl Date: Thu, 21 Nov 2002 01:07:25 +0100 (MET) Message-Id: To: linux-kernel@vger.kernel.org Subject: kill i_dev Cc: torvalds@transmeta.com, viro@math.psu.edu Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 757 Lines: 24 One disadvantage of enlarging the size of dev_t is that struct inode grows. Bad. We used to have i_dev and i_rdev; today i_rdev has split into i_rdev, i_bdev and i_cdev. Bad. It looks like these four fields can be replaced by a single one, making struct inode smaller. Not bad. The first step would be to delete the field i_dev, and all assignments to it, and replace all remaining occurrences by i_sb->s_dev. Roughly speaking, the only use of this field is in the stat system call. Any objections? Andries - 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/