1. 30 5月, 2012 21 次提交
    • A
      ocfs2: trivial endianness misannotations · 85158410
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      85158410
    • A
      affs: bury unused macros · 66f8f509
      Al Viro 提交于
      ... unused since 2.4.4.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      66f8f509
    • A
      kill v9fs_dentry_from_dir_inode() · af569596
      Al Viro 提交于
      In *all* callers we have a dentry of child of that directory.
      Just use ->d_parent of that one, for fsck sake...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      af569596
    • A
      selinuxfs snprintf() misuses · cc1dad71
      Al Viro 提交于
      a) %d does _not_ produce a page worth of output
      b) snprintf() doesn't return negatives - it used to in old glibc, but
      that's the kernel...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      cc1dad71
    • S
      ceph: move encode_fh to new API · c862868b
      Sage Weil 提交于
      Use parent_inode has a flag for whether nfsd wants a connectable fh, but
      generate one opportunistically so that we can take advantage of the
      additional info in there.
      Signed-off-by: NSage Weil <sage@newdream.net>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      c862868b
    • A
      ->encode_fh() API change · b0b0382b
      Al Viro 提交于
      pass inode + parent's inode or NULL instead of dentry + bool saying
      whether we want the parent or not.
      
      NOTE: that needs ceph fix folded in.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      b0b0382b
    • A
      ubifs: use generic_fillattr() · 6d42e7e9
      Al Viro 提交于
      don't open-code it...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      6d42e7e9
    • A
      xfs: switch to proper __bitwise type for KM_... flags · 77ba7877
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      77ba7877
    • A
      switch utimes() to fget_light/fput_light · c217a2a0
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      c217a2a0
    • A
      switch statfs to fget_light/fput_light · 0aa2ee5f
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      0aa2ee5f
    • A
      switch flock to fget_light/fput_light · bdc68959
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      bdc68959
    • A
      switch signalfd4() to fget_light/fput_light · 20ba5d73
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      20ba5d73
    • A
      switch fcntl to fget_raw_light/fput_light · 545ec2c7
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      545ec2c7
    • A
      switch xattr syscalls to fget_light/fput_light · 7449af1e
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      7449af1e
    • A
      switch readdir/getdents to fget_light/fput_light · 863ced7f
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      863ced7f
    • A
      switch do_fsync() to fget_light() · c2bd6c11
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      c2bd6c11
    • L
      Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 · 442a9ffa
      Linus Torvalds 提交于
      Pull CIFS updates from Steve French.
      
      * 'for-next' of git://git.samba.org/sfrench/cifs-2.6: (29 commits)
        cifs: fix oops while traversing open file list (try #4)
        cifs: Fix comment as d_alloc_root() is replaced by d_make_root()
        CIFS: Introduce SMB2 mounts as vers=2.1
        CIFS: Introduce SMB2 Kconfig option
        CIFS: Move add/set_credits and get_credits_field to ops structure
        CIFS: Move protocol specific demultiplex thread calls to ops struct
        CIFS: Move protocol specific part from cifs_readv_receive to ops struct
        CIFS: Move header_size/max_header_size to ops structure
        CIFS: Move protocol specific part from SendReceive2 to ops struct
        cifs: Include backup intent search flags during searches {try #2)
        CIFS: Separate protocol specific part from setlk
        CIFS: Separate protocol specific part from getlk
        CIFS: Separate protocol specific lock type handling
        CIFS: Convert lock type to 32 bit variable
        CIFS: Move locks to cifsFileInfo structure
        cifs: convert send_nt_cancel into a version specific op
        cifs: add a smb_version_operations/values structures and a smb_version enum
        cifs: remove the vers= and version= synonyms for ver=
        cifs: add warning about change in default cache semantics in 3.7
        cifs: display cache= option in /proc/mounts
        ...
      442a9ffa
    • L
      Merge tag 'mfd-3.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6 · 4b781474
      Linus Torvalds 提交于
      Pull MFD changes from Samuel Ortiz:
       "Besides the usual cleanups, this one brings:
      
         * Support for 5 new chipsets: Intel's ICH LPC and SCH Centerton,
           ST-E's STAX211, Samsung's MAX77693 and TI's LM3533.
      
         * Device tree support for the twl6040, tps65910, da9502 and ab8500
           drivers.
      
         * Fairly big tps56910, ab8500 and db8500 updates.
      
         * i2c support for mc13xxx.
      
         * Our regular update for the wm8xxx driver from Mark."
      
      Fix up various conflicts with other trees, largely due to ab5500 removal
      etc.
      
      * tag 'mfd-3.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (106 commits)
        mfd: Fix build break of max77693 by adding REGMAP_I2C option
        mfd: Fix twl6040 build failure
        mfd: Fix max77693 build failure
        mfd: ab8500-core should depend on MFD_DB8500_PRCMU
        gpio: tps65910: dt: process gpio specific device node info
        mfd: Remove the parsing of dt info for tps65910 gpio
        mfd: Save device node parsed platform data for tps65910 sub devices
        mfd: Add r_select to lm3533 platform data
        gpio: Add Intel Centerton support to gpio-sch
        mfd: Emulate active low IRQs as well as active high IRQs for wm831x
        mfd: Mark two lm3533 zone registers as volatile
        mfd: Fix return type of lm533 attribute is_visible
        mfd: Enable Device Tree support in the ab8500-pwm driver
        mfd: Enable Device Tree support in the ab8500-sysctrl driver
        mfd: Add support for Device Tree to twl6040
        mfd: Register the twl6040 child for the ASoC codec unconditionally
        mfd: Allocate twl6040 IRQ numbers dynamically
        mfd: twl6040 code cleanup in interrupt initialization part
        mfd: Enable ab8500-gpadc driver for Device Tree
        mfd: Prevent unassigned pointer from being used in ab8500-gpadc driver
        ...
      4b781474
    • L
      Merge tag 'nfs-for-3.5-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 53f2c4a8
      Linus Torvalds 提交于
      Pull NFS client updates from Trond Myklebust:
       "New features include:
         - Rewrite the O_DIRECT code so that it can share the same coalescing
           and pNFS functionality as the page cache code.
         - Allow the server to provide hints as to when we should use pNFS,
           and when it is more efficient to read and write through the
           metadata server.
         - NFS cache consistency updates:
           * Use the ctime to emulate a change attribute for NFSv2/v3 so that
             all NFS versions can share the same cache management code.
           * New cache management code will only look at the change attribute
             and size attribute when deciding whether or not our cached data
             is still valid or not.
           * Don't request NFSv4 post-op attributes on writes in cases such as
             O_DIRECT, where we don't care about data cache consistency, or
             when we have a write delegation, and know that our cache is still
             consistent.
           * Don't request NFSv4 post-op attributes on operations such as
             COMMIT, where there are no expected metadata updates.
           * Don't request NFSv4 directory post-op attributes in cases where
             the operations themselves already return change attribute
             updates: i.e. operations such as OPEN, CREATE, REMOVE, LINK and
             RENAME.
         - Speed up 'ls' and friends by using READDIR rather than READDIRPLUS
           if we detect no attempts to lookup filenames.
         - Improve the code sharing between NFSv2/v3 and v4 mounts
         - NFSv4.1 state management efficiency improvements
         - More patches in preparation for NFSv4/v4.1 migration functionality."
      
      Fix trivial conflict in fs/nfs/nfs4proc.c that was due to the dcache
      qstr name initialization changes (that made the length/hash a 64-bit
      union)
      
      * tag 'nfs-for-3.5-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (146 commits)
        NFSv4: Add debugging printks to state manager
        NFSv4: Map NFS4ERR_SHARE_DENIED into an EACCES error instead of EIO
        NFSv4: update_changeattr does not need to set NFS_INO_REVAL_PAGECACHE
        NFSv4.1: nfs4_reset_session should use nfs4_handle_reclaim_lease_error
        NFSv4.1: Handle other occurrences of NFS4ERR_CONN_NOT_BOUND_TO_SESSION
        NFSv4.1: Handle NFS4ERR_CONN_NOT_BOUND_TO_SESSION in the state manager
        NFSv4.1: Handle errors in nfs4_bind_conn_to_session
        NFSv4.1: nfs4_bind_conn_to_session should drain the session
        NFSv4.1: Don't clobber the seqid if exchange_id returns a confirmed clientid
        NFSv4.1: Add DESTROY_CLIENTID
        NFSv4.1: Ensure we use the correct credentials for bind_conn_to_session
        NFSv4.1: Ensure we use the correct credentials for session create/destroy
        NFSv4.1: Move NFSPROC4_CLNT_BIND_CONN_TO_SESSION to the end of the operations
        NFSv4.1: Handle NFS4ERR_SEQ_MISORDERED when confirming the lease
        NFSv4: When purging the lease, we must clear NFS4CLNT_LEASE_CONFIRM
        NFSv4: Clean up the error handling for nfs4_reclaim_lease
        NFSv4.1: Exchange ID must use GFP_NOFS allocation mode
        nfs41: Use BIND_CONN_TO_SESSION for CB_PATH_DOWN*
        nfs4.1: add BIND_CONN_TO_SESSION operation
        NFSv4.1 test the mdsthreshold hint parameters
        ...
      53f2c4a8
    • A
      tty: fix ldisc lock inversion trace · 8f6576ad
      Alan Cox 提交于
      This is caused by tty_release using tty_lock_pair to lock both sides of
      the pty/tty pair, and then tty_ldisc_release dropping and relocking one
      side only.  We can drop both fine, so drop both to avoid any lock
      ordering concerns.
      
      Rework the release path to fix the new locking model.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8f6576ad
    • A
      pty: Fix lock inversion · d3ca8b64
      Alan Cox 提交于
      The ptmx_open path takes the tty and devpts locks in the wrong order
      because tty_init_dev locks and returns a locked tty.  As far as I can
      tell this is actually safe anyway because the tty being returned is new
      so nobody can get a reference to lock it at this point.
      
      However we don't even need the devpts lock at this point, it's only held
      as a byproduct of the way the locks were pushe down.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d3ca8b64
  2. 29 5月, 2012 9 次提交
  3. 28 5月, 2012 9 次提交
  4. 27 5月, 2012 1 次提交
    • L
      Merge branch 'generic-string-functions' · 1e2aec87
      Linus Torvalds 提交于
      This makes <asm/word-at-a-time.h> actually live up to its promise of
      allowing architectures to help tune the string functions that do their
      work a word at a time.
      
      David had already taken the x86 strncpy_from_user() function, modified
      it to work on sparc, and then done the extra work to make it generically
      useful.  This then expands on that work by making x86 use that generic
      version, completing the circle.
      
      But more importantly, it fixes up the word-at-a-time interfaces so that
      it's now easy to also support things like strnlen_user(), and pretty
      much most random string functions.
      
      David reports that it all works fine on sparc, and Jonas Bonn reported
      that an earlier version of this worked on OpenRISC too.  It's pretty
      easy for architectures to add support for this and just replace their
      private versions with the generic code.
      
      * generic-string-functions:
        sparc: use the new generic strnlen_user() function
        x86: use the new generic strnlen_user() function
        lib: add generic strnlen_user() function
        word-at-a-time: make the interfaces truly generic
        x86: use generic strncpy_from_user routine
      1e2aec87