1. 12 12月, 2009 21 次提交
  2. 11 12月, 2009 7 次提交
  3. 10 12月, 2009 12 次提交
    • D
      V4L/DVB (13592): max2165: 32bit build patch · 5476ffd2
      David Wong 提交于
      This patch drops usage of floating point variable for 32bit build
      Signed-off-by: NDavid T. L. Wong <davidtlwong@gmail.com>
      Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      5476ffd2
    • B
      exofs: Multi-device mirror support · 04dc1e88
      Boaz Harrosh 提交于
      This patch changes on-disk format, it is accompanied with a parallel
      patch to mkfs.exofs that enables multi-device capabilities.
      
      After this patch, old exofs will refuse to mount a new formatted FS and
      new exofs will refuse an old format. This is done by moving the magic
      field offset inside the FSCB. A new FSCB *version* field was added. In
      the future, exofs will refuse to mount unmatched FSCB version. To
      up-grade or down-grade an exofs one must use mkfs.exofs --upgrade option
      before mounting.
      
      Introduced, a new object that contains a *device-table*. This object
      contains the default *data-map* and a linear array of devices
      information, which identifies the devices used in the filesystem. This
      object is only written to offline by mkfs.exofs. This is why it is kept
      separate from the FSCB, since the later is written to while mounted.
      
      Same partition number, same object number is used on all devices only
      the device varies.
      
      * define the new format, then load the device table on mount time make
        sure every thing is supported.
      
      * Change I/O engine to now support Mirror IO, .i.e write same data
        to multiple devices, read from a random device to spread the
        read-load from multiple clients (TODO: stripe read)
      
      Implementation notes:
       A few points introduced in previous patch should be mentioned here:
      
      * Special care was made so absolutlly all operation that have any chance
        of failing are done before any osd-request is executed. This is to
        minimize the need for a data consistency recovery, to only real IO
        errors.
      
      * Each IO state has a kref. It starts at 1, any osd-request executed
        will increment the kref, finally when all are executed the first ref
        is dropped. At IO-done, each request completion decrements the kref,
        the last one to return executes the internal _last_io() routine.
        _last_io() will call the registered io_state_done. On sync mode a
        caller does not supply a done method, indicating a synchronous
        request, the caller is put to sleep and a special io_state_done is
        registered that will awaken the caller. Though also in sync mode all
        operations are executed in parallel.
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      04dc1e88
    • B
      exofs: Move all operations to an io_engine · 06886a5a
      Boaz Harrosh 提交于
      In anticipation for multi-device operations, we separate osd operations
      into an abstract I/O API. Currently only one device is used but later
      when adding more devices, we will drive all devices in parallel according
      to a "data_map" that describes how data is arranged on multiple devices.
      The file system level operates, like before, as if there is one object
      (inode-number) and an i_size. The io engine will split this to the same
      object-number but on multiple device.
      
      At first we introduce Mirror (raid 1) layout. But at the final outcome
      we intend to fully implement the pNFS-Objects data-map, including
      raid 0,4,5,6 over mirrored devices, over multiple device-groups. And
      more. See: http://tools.ietf.org/html/draft-ietf-nfsv4-pnfs-obj-12
      
      * Define an io_state based API for accessing osd storage devices
        in an abstract way.
        Usage:
      	First a caller allocates an io state with:
      		exofs_get_io_state(struct exofs_sb_info *sbi,
      				   struct exofs_io_state** ios);
      
      	Then calles one of:
      		exofs_sbi_create(struct exofs_io_state *ios);
      		exofs_sbi_remove(struct exofs_io_state *ios);
      		exofs_sbi_write(struct exofs_io_state *ios);
      		exofs_sbi_read(struct exofs_io_state *ios);
      		exofs_oi_truncate(struct exofs_i_info *oi, u64 new_len);
      
      	And when done
      		exofs_put_io_state(struct exofs_io_state *ios);
      
      * Convert all source files to use this new API
      * Convert from bio_alloc to bio_kmalloc
      * In io engine we make use of the now fixed osd_req_decode_sense
      
      There are no functional changes or on disk additions after this patch.
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      06886a5a
    • B
      exofs: move osd.c to ios.c · 8ce9bdd1
      Boaz Harrosh 提交于
      If I do a "git mv" together with a massive code change
      and commit in one patch, git looses the rename and
      records a delete/new instead. This is bad because I want
      a rename recorded so later rebased/cherry-picked patches
      to the old name will work. Also the --follow is lost.
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      8ce9bdd1
    • B
      exofs: statfs blocks is sectors not FS blocks · cae012d8
      Boaz Harrosh 提交于
      Even though exofs has a 4k block size, statfs blocks
      is in sectors (512 bytes).
      
      Also if target returns 0 for capacity then make it
      ULLONG_MAX. df does not like zero-size filesystems
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      cae012d8
    • B
      exofs: Prints on mount and unmout · 19fe294f
      Boaz Harrosh 提交于
      It is important to print in the logs when a filesystem was
      mounted and eventually unmounted.
      
      Print the osd-device's osd_name and pid the FS was
      mounted/unmounted on.
      
      TODO: How to also print the namespace path the filesystem was
            mounted on?
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      19fe294f
    • B
      exofs: refactor exofs_i_info initialization into common helper · 9cfdc7aa
      Boaz Harrosh 提交于
      There are two places that initialize inodes: exofs_iget() and
      exofs_new_inode()
      
      As more members of exofs_i_info that need initialization are
      added this code will grow. (soon)
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      9cfdc7aa
    • B
      exofs: dbg-print less · fe33cc1e
      Boaz Harrosh 提交于
      Iner-loops printing is converted to EXOFS_DBG2 which is #defined
      to nothing.
      
      It is now almost bareable to just leave debug-on. Every operation
      is printed once, with most relevant info (I hope).
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      fe33cc1e
    • B
      exofs: More sane debug print · 58311c43
      Boaz Harrosh 提交于
      debug prints should be somewhat useful without actually
      reading the source code
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      58311c43
    • T
      trivial: some small fixes in exofs documentation · 9f249162
      Thadeu Lima de Souza Cascardo 提交于
      Add exofs.txt to filesystems Documentation index and fix some typos,
      identation and grammar.
      Signed-off-by: NThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      9f249162
    • L
      Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · 3067e02f
      Linus Torvalds 提交于
      * 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
        ACPICA: Update version to 20091112.
        ACPICA: Add additional module-level code support
        ACPICA: Deploy new create integer interface where appropriate
        ACPICA: New internal utility function to create Integer objects
        ACPICA: Add repair for predefined methods that must return sorted lists
        ACPICA: Fix possible fault if return Package objects contain NULL elements
        ACPICA: Add post-order callback to acpi_walk_namespace
        ACPICA: Change package length error message to an info message
        ACPICA: Reduce severity of predefined repair messages, Warning to Info
        ACPICA: Update version to 20091013
        ACPICA: Fix possible memory leak for Scope ASL operator
        ACPICA: Remove possibility of executing _REG methods twice
        ACPICA: Add repair for bad _MAT buffers
        ACPICA: Add repair for bad _BIF/_BIX packages
      3067e02f
    • L
      Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging · f71eaf68
      Linus Torvalds 提交于
      * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: (41 commits)
        hwmon: (adt7475) Add VID support for the ADT7476
        hwmon: (adt7475) Add an entry in MAINTAINERS
        hwmon: (adt7475) Add support for the ADT7476
        hwmon: (adt7475) Voltage attenuators can be bypassed
        hwmon: (adt7475) Print device information on probe
        hwmon: (adt7475) Handle alternative pin functions
        hwmon: (adt7475) Move sysfs files removal to a separate function
        hwmon: (adt7475) Add support for the ADT7490
        hwmon: (adt7475) Improve device detection
        hwmon: (adt7475) Add missing static marker
        hwmon: (adt7475) Rework voltage inputs handling
        hwmon: (adt7475) Implement pwm_use_point2_pwm_at_crit
        hwmon: (adt7475) New documentation
        hwmon: (adt7475) Add support for the ADT7473
        hwmon: (f71882fg) Add support for the f71889fg (version 2)
        hwmon: (f71882fg) Fix sysfs file removal
        hwmon: (f71882fg) Cleanup sysfs attr creation 2/2
        hwmon: (f71882fg) Cleanup sysfs attr creation 1/2
        hwmon: (thmc50) Stop using I2C_CLIENT_MODULE_PARM
        hwmon: Add Freescale MC13783 ADC driver
        ...
      f71eaf68