1. 20 Mar, 2006 1 commit
    • Steven Whitehouse's avatar
      [GFS2] Fix bug in directory code and tidy up · c752666c
      Steven Whitehouse authored
      Due to a typo, the dir leaf split operation was (for the first
      split in a directory) writing the new hash vaules at the
      wrong offset. This is now fixed.
      
      Also some other tidy ups are included:
      
       - We use GFS2's hash function for dentries (see ops_dentry.c) so that
         we don't have to keep recalculating the hash values.
       - A lot of common code is eliminated between the various directory
         lookup routines.
       - Better error checking on directory lookup (previously different
         routines checked for different errors)
       - The leaf split operation has a couple of redundant operations
         removed from it, so it should be faster.
      
      There is still further scope for further clean ups in the directory
      code, and readdir in particular could do with slimming down a bit.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      c752666c
  2. 02 Mar, 2006 1 commit
    • Steven Whitehouse's avatar
      [GFS2] Add gfs2meta filesystem · 419c93e0
      Steven Whitehouse authored
      In order to separate out the filesystem's metadata from "normal"
      files and directories, a new filesystem type has been created.
      It is called gfs2meta and mounting it gives access to the files
      that were previously under .gfs2_admin (well still are until mkfs
      is altered, which is next on the adgenda).
      
      Its not currently possible to mount both gfs2 and gfs2meta on the
      same block device at the same time. A future patch will allow that
      to happen.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      419c93e0
  3. 01 Mar, 2006 3 commits
    • Steven Whitehouse's avatar
      [GFS2] Fix some bugs · b4dc7291
      Steven Whitehouse authored
      Fix a bug I introduced earlier with a kfree() and usage of
      a structure in the wrong order. Also try and get the counts
      of the journaled data buffers "more correct". Still some work
      to do in this area though.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      b4dc7291
    • Steven Whitehouse's avatar
      [GFS2] Tidy up mount code. · c9fd4307
      Steven Whitehouse authored
      We no longer lookup ".gfs2_admin" in the root directory in order to
      find it, but instead use the inode number given in the superblock.
      Both the root directory and the admin directory are now looked up using
      the same routine, so the redundant code is removed.
      
      Also, there is no longer a reference to the root inode in the
      GFS2 super block. When required this can be retreived via
      sb->s_root->d_inode instead.
      
      Assuming that we introduce a metadata filesystem type for GFS, then
      this is a first step towards that goal.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      c9fd4307
    • Steven Whitehouse's avatar
      [GFS2] Remove uneeded memory allocation · e317ffcb
      Steven Whitehouse authored
      For every filesystem operation where we need a transaction, we
      now make one less memory allocation.
      Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      e317ffcb
  4. 28 Feb, 2006 1 commit
  5. 27 Feb, 2006 14 commits
  6. 26 Feb, 2006 14 commits
  7. 25 Feb, 2006 3 commits
  8. 24 Feb, 2006 3 commits