1. 19 6月, 2009 1 次提交
    • J
      reiserfs: fix warnings with gcc 4.4 · 1d965fe0
      Jeff Mahoney 提交于
      Several code paths in reiserfs have a construct like:
      
       if (is_direntry_le_ih(ih = B_N_PITEM_HEAD(src, item_num))) ...
      
      which, in addition to being ugly, end up causing compiler warnings with
      gcc 4.4.0.  Previous compilers didn't issue a warning.
      
      fs/reiserfs/do_balan.c:1273: warning: operation on `aux_ih' may be undefined
      fs/reiserfs/lbalance.c:393: warning: operation on `ih' may be undefined
      fs/reiserfs/lbalance.c:421: warning: operation on `ih' may be undefined
      fs/reiserfs/lbalance.c:777: warning: operation on `ih' may be undefined
      
      I believe this is due to the ih being passed to macros which evaluate the
      argument more than once.  This is old code and we haven't seen any
      problems with it, but this patch eliminates the warnings.
      
      It converts the multiple evaluation macros to static inlines and does a
      preassignment for the cases that were causing the warnings because that
      code is just ugly.
      Reported-by: NChris Mason <mason@oracle.com>
      Signed-off-by: NJeff Mahoney <jeffm@suse.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1d965fe0
  2. 31 3月, 2009 17 次提交
  3. 03 2月, 2009 2 次提交
    • J
      headers_check fix cleanup: linux/reiserfs_fs.h · 750e1c18
      Jaswinder Singh Rajput 提交于
      Only REISERFS_IOC_* definitions are required for user space
      rest should be in #ifdef __KERNEL__ as pointed by Arnd Bergmann.
      Signed-off-by: NJaswinder Singh Rajput <jaswinderrajput@gmail.com>
      750e1c18
    • J
      headers_check fix: linux/reinserfs_fs.h · 11d9f653
      Jaswinder Singh Rajput 提交于
      fix the following 'make headers_check' warnings:
      
        usr/include/linux/reiserfs_fs.h:687: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:995: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:997: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1467: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1760: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1764: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1766: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1769: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1771: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1805: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1948: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1949: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1950: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1951: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1962: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1963: extern's make no sense in userspace
        usr/include/linux/reiserfs_fs.h:1964: extern's make no sense in userspace
      Signed-off-by: NJaswinder Singh Rajput <jaswinderrajput@gmail.com>
      11d9f653
  4. 17 10月, 2008 1 次提交
  5. 26 7月, 2008 1 次提交
  6. 28 4月, 2008 1 次提交
    • J
      reiserfs: unpack tails on quota files · d5dee5c3
      Jan Kara 提交于
      Quota files cannot have tails because quota_write and quota_read functions do
      not support them.  So far when quota files did have tail, we just refused to
      turn quotas on it.  Sadly this check has been wrong and so there are now
      plenty installations where quota files don't have NOTAIL flag set and so now
      after fixing the check, they suddently fail to turn quotas on.  Since it's
      easy to unpack the tail from kernel, do this from reiserfs_quota_on() which
      solves the problem and is generally nicer to users anyway.
      Signed-off-by: NJan Kara <jack@suse.cz>
      Reported-by: <urhausen@urifabi.net>
      Cc: Jeff Mahoney <jeffm@suse.com>
      Cc: Chris Mason <chris.mason@oracle.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d5dee5c3
  7. 09 2月, 2008 1 次提交
  8. 22 10月, 2007 1 次提交
  9. 20 10月, 2007 3 次提交
  10. 17 10月, 2007 1 次提交
  11. 29 7月, 2007 1 次提交
  12. 13 2月, 2007 1 次提交
  13. 09 12月, 2006 1 次提交
  14. 08 12月, 2006 1 次提交
  15. 01 10月, 2006 3 次提交
    • J
      [PATCH] reiserfs: reorganize bitmap loading functions · 6f01046b
      Jeff Mahoney 提交于
      This patch moves the bitmap loading code from super.c to bitmap.c
      
      The code is also restructured somewhat.  The only difference between new
      format bitmaps and old format bitmaps is where they are.  That's a two liner
      before loading the block to use the correct one.  There's no need for an
      entirely separate code path.
      
      The load path is generally the same, with the pattern being to throw out a
      bunch of requests and then wait for them, then cache the metadata from the
      contents.
      
      Again, like the previous patches, the purpose is to set up for later ones.
      
      Update: There was a bug in the previously posted version of this that resulted
      in corruption.  The problem was that bitmap 0 on new format file systems must
      be treated specially, and wasn't.  A stupid bug with an easy fix.
      
      This is hopefully the last fix for the disaster that is the reiserfs bitmap
      patch set.
      
      If a bitmap block was full, first_zero_hint would end up at zero since it
      would never be changed from it's zeroed out value.  This just sets it
      beyond the end of the bitmap block.  If any bits are freed, it will be
      reset to a valid bit.  When info->free_count = 0, then we already know it's
      full.
      Signed-off-by: NJeff Mahoney <jeffm@suse.com>
      Cc: <reiserfs-dev@namesys.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6f01046b
    • D
      [PATCH] BLOCK: Move the ReiserFS device ioctl compat stuff to the ReiserFS driver [try #6] · 52b499c4
      David Howells 提交于
      Move the ReiserFS device ioctl compat stuff from fs/compat_ioctl.c to the
      ReiserFS driver so that the ReiserFS header file doesn't need to be included.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      52b499c4
    • D
      [PATCH] BLOCK: Move common FS-specific ioctls to linux/fs.h [try #6] · 36695673
      David Howells 提交于
      Move common FS-specific ioctls from linux/ext2_fs.h to linux/fs.h as FS_IOC_*
      and FS_IOC32_* and have the users of them use those as a base.
      
      Also move the GETFLAGS/SETFLAGS flags to linux/fs.h as FS_*_FL macros, and then
      have the other users use them as a base.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      36695673
  16. 24 9月, 2006 1 次提交
  17. 29 6月, 2006 1 次提交
  18. 29 3月, 2006 1 次提交
  19. 26 3月, 2006 1 次提交