1. 28 9月, 2006 30 次提交
  2. 27 9月, 2006 2 次提交
    • T
      [PATCH] inode-diet: Eliminate i_blksize from the inode structure · ba52de12
      Theodore Ts'o 提交于
      This eliminates the i_blksize field from struct inode.  Filesystems that want
      to provide a per-inode st_blksize can do so by providing their own getattr
      routine instead of using the generic_fillattr() function.
      
      Note that some filesystems were providing pretty much random (and incorrect)
      values for i_blksize.
      
      [bunk@stusta.de: cleanup]
      [akpm@osdl.org: generic_fillattr() fix]
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ba52de12
    • T
      [PATCH] inode_diet: Replace inode.u.generic_ip with inode.i_private · 8e18e294
      Theodore Ts'o 提交于
      The following patches reduce the size of the VFS inode structure by 28 bytes
      on a UP x86.  (It would be more on an x86_64 system).  This is a 10% reduction
      in the inode size on a UP kernel that is configured in a production mode
      (i.e., with no spinlock or other debugging functions enabled; if you want to
      save memory taken up by in-core inodes, the first thing you should do is
      disable the debugging options; they are responsible for a huge amount of bloat
      in the VFS inode structure).
      
      This patch:
      
      The filesystem or device-specific pointer in the inode is inside a union,
      which is pretty pointless given that all 30+ users of this field have been
      using the void pointer.  Get rid of the union and rename it to i_private, with
      a comment to explain who is allowed to use the void pointer.  This is just a
      cleanup, but it allows us to reuse the union 'u' for something something where
      the union will actually be used.
      
      [judith@osdl.org: powerpc build fix]
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      Signed-off-by: NJudith Lebzelter <judith@osdl.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8e18e294
  3. 26 9月, 2006 1 次提交
  4. 03 8月, 2006 2 次提交
  5. 13 7月, 2006 4 次提交
  6. 04 7月, 2006 1 次提交
    • A
      [PATCH] lockdep: annotate USBFS · 8e7795ef
      Arjan van de Ven 提交于
      In usbfs's fs_remove_file() function, the aim is to remove a file or
      directory from usbfs. This is done by first taking the i_mutex of the
      parent directory of this file/dir via
        mutex_lock(&parent->d_inode->i_mutex);
      and then to call either usbfs_rmdir() for a directory or usbfs_unlink()
      for a file. Both these functions then take the i_mutex for the
      to-be-removed object themselves:
        mutex_lock(&inode->i_mutex);
      
      This is a classical parent->child locking order relationship that the VFS uses
      all over the place; the VFS locking rule is "you need to take the parent
      first".  This patch annotates the usbfs code to make this explicit and thus
      informs the lockdep code that those two locks indeed have this relationship.
      
      The rules for unlink that we already use in the VFS for unlink are to use
      I_MUTEX_PARENT for the parent directory, and a normal mutex for the file
      itself; this patch follows that convention.
      
      Has no effect on non-lockdep kernels.
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8e7795ef