1. 04 Aug, 2010 4 commits
    • Boaz Harrosh's avatar
      exofs: Fix groups code when num_devices is not divisible by group_width · 5002dd18
      Boaz Harrosh authored
      There is a bug when num_devices is not divisible by group_width * mirrors.
      We would not return to the proper device and offset when looping on to the
      next group.
      
      The fix makes code simpler actually.
      Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
      5002dd18
    • Boaz Harrosh's avatar
      exofs: Remove useless optimization · 6e31609b
      Boaz Harrosh authored
      We used to compact all used devices in an IO to the beginning
      of the device array in an io_state. And keep a last device used
      so in later loops we don't iterate on all device slots. This
      does not prevent us from checking if slots are empty since in
      reads we only read from a single mirror and jump to the next
      mirror-set.
      
      This optimization is marginal, and needlessly complicates the
      code. Specially when we will later want to support raid/456
      with same abstract code. So remove the distinction between
      "dev" and "comp". Only "dev" is used both as the device used
      and as the index (component) in the device array.
      
      [Note that now the io_state->dev member is redundant but I
       keep it because I might want to optimize by only IOing a
       single group, though keeping a group_width*mirrors devices
       in io_state, we now keep num-devices in each io_state]
      Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
      6e31609b
    • Boaz Harrosh's avatar
      exofs: exofs_file_fsync and exofs_file_flush correctness · b2848349
      Boaz Harrosh authored
      As per Christoph advise: no need to call filemap_write_and_wait().
      In exofs all metadata is at the inode so just writing the inode is
      all is needed. ->fsync implies this must be done synchronously.
      
      But now exofs_file_fsync can not be used by exofs_file_flush.
      vfs_fsync() should do that job correctly.
      
      FIXME: remove the sb_sync and fix that sb_update better.
      Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
      b2848349
    • Boaz Harrosh's avatar
      exofs: Remove superfluous dependency on buffer_head and writeback · 85dc7878
      Boaz Harrosh authored
      exofs_releasepage && exofs_invalidatepage are never called.
      Leave the WARN_ONs but remove any code. Remove the
      
      cleanup other stale #includes.
      Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
      85dc7878
  2. 03 Aug, 2010 9 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw · 3a09b1be
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw:
        GFS2: Fix recovery stuck bug (try #2)
        GFS2: Fix typo in stuffed file data copy handling
        Revert "GFS2: recovery stuck on transaction lock"
        GFS2: Make "try" lock not try quite so hard
        GFS2: remove dependency on __GFP_NOFAIL
        GFS2: Simplify gfs2_write_alloc_required
        GFS2: Wait for journal id on mount if not specified on mount command line
        GFS2: Use nobh_writepage
      3a09b1be
    • Linus Torvalds's avatar
      Merge branch 'linux-next' of git://git.infradead.org/ubi-2.6 · 7046e668
      Linus Torvalds authored
      * 'linux-next' of git://git.infradead.org/ubi-2.6:
        UBI: do not warn unnecessarily
        UBI: do not print message about corruptes PEBs if we have none of them
        UBI: improve delete-compatible volumes handling
        UBI: fix error message and compilation warnings
        UBI: generate random image_seq when formatting MTD devices
        UBI: improve ECC error message
        UBI: improve corrupted flash handling
        UBI: introduce eraseblock counter variables
        UBI: introduce a new IO return code
        UBI: simplify IO error codes
      7046e668
    • Linus Torvalds's avatar
      Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6 · c939f9f9
      Linus Torvalds authored
      * 'linux-next' of git://git.infradead.org/ubifs-2.6:
        UBIFS: fix a memory leak on error path.
        UBIFS: fix GC LEB recovery
        UBIFS: use ERR_CAST
        UBIFS: check return code
      c939f9f9
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs · b8b3e905
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs: (22 commits)
        9p: fix sparse warnings in new xattr code
        fs/9p: remove sparse warning in vfs_inode
        fs/9p: destroy fid on failed remove
        fs/9p: Prevent parallel rename when doing fid_lookup
        fs/9p: Add support user. xattr
        net/9p: Implement TXATTRCREATE 9p call
        net/9p: Implement attrwalk 9p call
        9p: Implement LOPEN
        fs/9p: This patch implements TLCREATE for 9p2000.L protocol.
        9p: Implement TMKDIR
        9p: Implement TMKNOD
        9p: Define and implement TSYMLINK for 9P2000.L
        9p: Define and implement TLINK for 9P2000.L
        9p: Define and implement TLINK for 9P2000.L
        9p: Implement client side of setattr for 9P2000.L protocol.
        9p: getattr client implementation for 9P2000.L protocol.
        fs/9p: Pass the correct user credentials during attach
        net/9p: Handle the server returned error properly
        9p: readdir implementation for 9p2000.L
        9p: Make use of iounit for read/write
        ...
      b8b3e905
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs · 51102ee5
      Linus Torvalds authored
      * 'for-linus' of git://oss.sgi.com/xfs/xfs: (49 commits)
        xfs simplify and speed up direct I/O completions
        xfs: move aio completion after unwritten extent conversion
        direct-io: move aio_complete into ->end_io
        xfs: fix big endian build
        xfs: clean up xfs_bmap_get_bp
        xfs: simplify xfs_truncate_file
        xfs: kill the b_strat callback in xfs_buf
        xfs: remove obsolete osyncisosync mount option
        xfs: clean up filestreams helpers
        xfs: fix gcc 4.6 set but not read and unused statement warnings
        xfs: Fix build when CONFIG_XFS_POSIX_ACL=n
        xfs: fix unsigned underflow in xfs_free_eofblocks
        xfs: use GFP_NOFS for page cache allocation
        xfs: fix memory reclaim recursion deadlock on locked inode buffer
        xfs: fix xfs_trans_add_item() lockdep warnings
        xfs: simplify and remove xfs_ireclaim
        xfs: don't block on buffer read errors
        xfs: move inode shrinker unregister even earlier
        xfs: remove a dmapi leftover
        xfs: writepage always has buffers
        ...
      51102ee5
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 · 54161df1
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (29 commits)
        cifs: fsc should not default to "on"
        [CIFS] remove redundant path walking in dfs_do_refmount
        cifs: ignore the "mand", "nomand" and "_netdev" mount options
        cifs: map NT_STATUS_ERROR_WRITE_PROTECTED to -EROFS
        cifs: don't allow cifs_iget to match inodes of the wrong type
        [CIFS] relinquish fscache cookie before freeing CIFSTconInfo
        cifs: add separate cred_uid field to sesInfo
        fs: cifs: check kmalloc() result
        [CIFS] Missing ifdef
        [CIFS] Missing line from previous commit
        [CIFS] Fix build break when CONFIG_CIFS_FSCACHE disabled
        cifs: add mount option to enable local caching
        cifs: read pages from FS-Cache
        cifs: store pages into local cache
        cifs: FS-Cache page management
        cifs: define inode-level cache object and register them
        cifs: define superblock-level cache index objects and register them
        cifs: remove unused cifsUidInfo struct
        cifs: clean up cifs_find_smb_ses (try #2)
        cifs: match secType when searching for existing tcp session
        ...
      54161df1
    • Linus Torvalds's avatar
      Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm · be82ae02
      Linus Torvalds authored
      * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (291 commits)
        ARM: AMBA: Add pclk support to AMBA bus infrastructure
        ARM: 6278/2: fix regression in RealView after the introduction of pclk
        ARM: 6277/1: mach-shmobile: Allow users to select HZ, default to 128
        ARM: 6276/1: mach-shmobile: remove duplicate NR_IRQS_LEGACY
        ARM: 6246/1: mmci: support larger MMCIDATALENGTH register
        ARM: 6245/1: mmci: enable hardware flow control on Ux500 variants
        ARM: 6244/1: mmci: add variant data and default MCICLOCK support
        ARM: 6243/1: mmci: pass power_mode to the translate_vdd callback
        ARM: 6274/1: add global control registers definition header file for nuc900
        mx2_camera: fix type of dma buffer virtual address pointer
        mx2_camera: Add soc_camera support for i.MX25/i.MX27
        arm/imx/gpio: add spinlock protection
        ARM: Add support for the LPC32XX arch
        ARM: LPC32XX: Arch config menu supoport and makefiles
        ARM: LPC32XX: Phytec 3250 platform support
        ARM: LPC32XX: Misc support functions
        ARM: LPC32XX: Serial support code
        ARM: LPC32XX: System suspend support
        ARM: LPC32XX: GPIO, timer, and IRQ drivers
        ARM: LPC32XX: Clock driver
        ...
      be82ae02
    • Helge Deller's avatar
      PARISC: led.c - fix potential stack overflow in led_proc_write() · 4b4fd27c
      Helge Deller authored
      avoid potential stack overflow by correctly checking count parameter
      Reported-by: default avatarIlja <ilja@netric.org>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Acked-by: default avatarKyle McMartin <kyle@mcmartin.ca>
      Cc: James E.J. Bottomley <jejb@parisc-linux.org>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4b4fd27c
    • Matthieu CASTET's avatar
      UBIFS: fix a memory leak on error path. · c18de72f
      Matthieu CASTET authored
      In 'mount_ubifs()', in case of 'ubifs_leb_unmap()' falure,
      free allocated resources.
      Signed-off-by: default avatarMatthieu CASTET <matthieu.castet@parrot.com>
      Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      c18de72f
  3. 02 Aug, 2010 27 commits