1. 09 6月, 2015 1 次提交
  2. 06 6月, 2015 1 次提交
  3. 05 6月, 2015 4 次提交
    • A
      vfs: Minor documentation fix · 47016077
      Andreas Gruenbacher 提交于
      The check_acl inode operation and the IPERM_FLAG_RCU flag are long gone; update
      the documentation.
      Signed-off-by: NAndreas Gruenbacher <agruenba@redhat.com>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      47016077
    • F
      Doc: networking: txtimestamp: fix printf format warning · 03e8f01a
      Frans Klaver 提交于
      Documentation/networking/timestamping/txtimestamp.c: In function ‘__print_timestamp’:
      Documentation/networking/timestamping/txtimestamp.c:99:3: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int64_t’ [-Wformat=]
         fprintf(stderr, "  (%+ld us)", cur_ms - prev_ms);
      
      int64_t differs per platform, so a type specifier that differs along
      with it is required.
      Signed-off-by: NFrans Klaver <fransklaver@gmail.com>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      03e8f01a
    • P
      Documentation, intel_pstate: Improve legacy mode internal governors description · 1df1b361
      Prarit Bhargava 提交于
      The current documentation is incomplete wrt the intel_pstate legacy
      internal governors.  The confusion comes from the general cpufreq
      governors which also use the names performance and powersave.  This patch
      better differentiates between the two sets of governors and gives an
      explanation of how the internal P-state governors behave differently from
      one another.
      
      Also fix two minor typos.
      
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
      Cc: Kristen Carlson Accardi <kristen@linux.intel.com>
      Cc: Dirk Brandewie <dirk.j.brandewie@intel.com>
      Cc: x86@kernel.org
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      1df1b361
    • L
      Documentation: extend use case for EXPORT_SYMBOL_GPL() · 582ed8d5
      Luis R. Rodriguez 提交于
      Current documentation over use case for EXPORT_SYMBOL_GPL()
      only acknowledges functions which are "an internal implementation
      issue, and not really an interface". In practice these days
      though we have some maintainers taking on preferences to require
      all new functionality go in with EXPORT_SYMBOL_GPL().
      
      A maintainer asking developers to use EXPORT_SYMBOL_GPL()
      for new functionality tends to be a well accepted and understood
      position that maintainers can take and typically requires the
      maintainers educating contributing developers on their own
      positions and requirements.
      
      Developers who submit code to maintainers not familiar with
      these preferences as optional for new functionality need explicit
      guidence though as existing documentation does not acknowledge
      this as a valid possibility. Without this being documented some
      maintainers are reluctant to accept new functionality with
      EXPORT_SYMBOL_GPL().
      
      This extends the use case documentation for EXPORT_SYMBOL_GPL()
      to acknowledge acceptance for new functionality.
      Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com>
      [jc: wording tweaked with permission]
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      582ed8d5
  4. 22 5月, 2015 3 次提交
  5. 16 5月, 2015 1 次提交
  6. 15 5月, 2015 1 次提交
  7. 14 5月, 2015 3 次提交
  8. 08 5月, 2015 4 次提交
  9. 07 5月, 2015 3 次提交
    • B
      firmware: Update information in linux.git about adding firmware · de88d8be
      Ben Hutchings 提交于
      Kyle McMartin joined the linux-firmware maintainers, and we now
      have an alias <linux-firmware@kernel.org> which reaches all of us.
      Include that instead of the individual addresses.
      
      Add some further recommendations that were already included in the
      README in linux-firmware.git added by Xose Vazquez Perez
      <xose.vazquez@gmail.com>.
      Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      de88d8be
    • H
      Documentation usb serial: fixed how to provide vendor and product id · e3aa205a
      H. Nikolaus Schaller 提交于
      While trying to test a Cinterion GSM/GPS/3G module I had reconfigured
      the USB interface by mistake and therefore needed to run a different
      USB driver than CDC-ACM. It turned out that I need the "usbserial" driver.
      
      This file is an official description how to use it:
      Documentation/usb/usb-serial.txt
      
      But it is outdated. The parameters vendor= and product= have been
      superseded by a /sys interface.
      
      Here was the solution:
      
      https://bbs.archlinux.org/viewtopic.php?id=175499
      
        insmod usbserial vendor=0x#### product=0x####
      
      becomes (first #### is vendor, second is product)
      
        modprobe usbserial
        echo #### #### >/sys/bus/usb-serial/drivers/generic/new_id
      
      This patch changes the documentation file to describe the modern variant.
      Please note that the old one still works (if compiled as module).
      Signed-off-by: NH. Nikolaus Schaller <hns@goldelico.com>
      Signed-off-by: NMarek Belisko <marek@goldelico.com>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      e3aa205a
    • C
      Docs: blackfin: Use new switch macro SAMPLE_IRQ_TIMER instead of IRQ_TIMER5 · 4ae711f4
      Chen Gang 提交于
      Not all blackfin machines support IRQ_TIMER5, but all machines support
      IRQ_TIMER2. So add a switch macro for them. The related error:
      
        Documentation/blackfin/gptimers-example.c: In function 'gptimer_example_init':
        Documentation/blackfin/gptimers-example.c:60:20: error: 'IRQ_TIMER5' undeclared (first use in this function)
          ret = request_irq(IRQ_TIMER5, gptimer_example_irq, IRQF_SHARED, DRIVER_NAME, &data);
                            ^
        Documentation/blackfin/gptimers-example.c:60:20: note: each undeclared identifier is reported only once for each function it appears in
        Documentation/blackfin/gptimers-example.c: In function 'gptimer_example_exit':
        Documentation/blackfin/gptimers-example.c:78:11: error: 'IRQ_TIMER5' undeclared (first use in this function)
          free_irq(IRQ_TIMER5, &data);
                   ^
      
      Also notice about 80 columns limitation.
      Signed-off-by: NChen Gang <gang.chen.5i5j@gmail.com>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      4ae711f4
  10. 04 5月, 2015 8 次提交
  11. 03 5月, 2015 3 次提交
    • J
      ext4: fix growing of tiny filesystems · 2c869b26
      Jan Kara 提交于
      The estimate of necessary transaction credits in ext4_flex_group_add()
      is too pessimistic. It reserves credit for sb, resize inode, and resize
      inode dindirect block for each group added in a flex group although they
      are always the same block and thus it is enough to account them only
      once. Also the number of modified GDT block is overestimated since we
      fit EXT4_DESC_PER_BLOCK(sb) descriptors in one block.
      
      Make the estimation more precise. That reduces number of requested
      credits enough that we can grow 20 MB filesystem (which has 1 MB
      journal, 79 reserved GDT blocks, and flex group size 16 by default).
      Signed-off-by: NJan Kara <jack@suse.cz>
      Signed-off-by: NTheodore Ts'o <tytso@mit.edu>
      Reviewed-by: NEric Sandeen <sandeen@redhat.com>
      2c869b26
    • D
      ext4: move check under lock scope to close a race. · 280227a7
      Davide Italiano 提交于
      fallocate() checks that the file is extent-based and returns
      EOPNOTSUPP in case is not. Other tasks can convert from and to
      indirect and extent so it's safe to check only after grabbing
      the inode mutex.
      Signed-off-by: NDavide Italiano <dccitaliano@gmail.com>
      Signed-off-by: NTheodore Ts'o <tytso@mit.edu>
      Cc: stable@vger.kernel.org
      280227a7
    • L
      ext4: fix data corruption caused by unwritten and delayed extents · d2dc317d
      Lukas Czerner 提交于
      Currently it is possible to lose whole file system block worth of data
      when we hit the specific interaction with unwritten and delayed extents
      in status extent tree.
      
      The problem is that when we insert delayed extent into extent status
      tree the only way to get rid of it is when we write out delayed buffer.
      However there is a limitation in the extent status tree implementation
      so that when inserting unwritten extent should there be even a single
      delayed block the whole unwritten extent would be marked as delayed.
      
      At this point, there is no way to get rid of the delayed extents,
      because there are no delayed buffers to write out. So when a we write
      into said unwritten extent we will convert it to written, but it still
      remains delayed.
      
      When we try to write into that block later ext4_da_map_blocks() will set
      the buffer new and delayed and map it to invalid block which causes
      the rest of the block to be zeroed loosing already written data.
      
      For now we can fix this by simply not allowing to set delayed status on
      written extent in the extent status tree. Also add WARN_ON() to make
      sure that we notice if this happens in the future.
      
      This problem can be easily reproduced by running the following xfs_io.
      
      xfs_io -f -c "pwrite -S 0xaa 4096 2048" \
                -c "falloc 0 131072" \
                -c "pwrite -S 0xbb 65536 2048" \
                -c "fsync" /mnt/test/fff
      
      echo 3 > /proc/sys/vm/drop_caches
      xfs_io -c "pwrite -S 0xdd 67584 2048" /mnt/test/fff
      
      This can be theoretically also reproduced by at random by running fsx,
      but it's not very reliable, though on machines with bigger page size
      (like ppc) this can be seen more often (especially xfstest generic/127)
      Signed-off-by: NLukas Czerner <lczerner@redhat.com>
      Signed-off-by: NTheodore Ts'o <tytso@mit.edu>
      Cc: stable@vger.kernel.org
      d2dc317d
  12. 02 5月, 2015 8 次提交