1. 01 Mar, 2010 2 commits
    • Christoph Hellwig's avatar
      xfs: fix dquota trace format · b262e5df
      Christoph Hellwig authored
      The be32_to_cpu in the TP_printk output breaks automatic parsing of
      the trace format by the trace-cmd tools, so we have to move it into
      the TP_assign block.  While we're at it also fix the format for the
      quota limits to more regular and easier parseable.
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarDave Chinner <david@fromorbit.com>
      Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
      b262e5df
    • Eric Sandeen's avatar
      xfs: increase readdir buffer size · a9cc799e
      Eric Sandeen authored
      While doing some testing of readdir perf a while back,
      I noticed that the buffer size we're using internally is
      smaller than what glibc gives us by default.  Upping this
      size helped a bit, and seems safe.
      
      glibc's __alloc_dir() does:
      
        const size_t default_allocation = (4 * BUFSIZ < sizeof (struct dirent64)
                                           ? sizeof (struct dirent64) : 4 * BUFSIZ);
        const size_t small_allocation = (BUFSIZ < sizeof (struct dirent64)
                                         ? sizeof (struct dirent64) : BUFSIZ);
        size_t allocation = default_allocation;
      #ifdef _STATBUF_ST_BLKSIZE
        if (statp != NULL && default_allocation < statp->st_blksize)
          allocation = statp->st_blksize;
      #endif
      
      and
      
      #define _G_BUFSIZ 8192
      #define _IO_BUFSIZ _G_BUFSIZ
      # define BUFSIZ _IO_BUFSIZ
      
      so the default buffer is 4 * 8192 = 32768
      (except in the unlikely case of blocks > 32k....)
      Signed-off-by: default avatarEric Sandeen <sandeen@sandeen.net>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
      a9cc799e
  2. 26 Feb, 2010 1 commit
  3. 24 Feb, 2010 13 commits
  4. 23 Feb, 2010 24 commits