1. 24 Feb, 2017 1 commit
  2. 20 Feb, 2017 8 commits
  3. 18 Jan, 2017 1 commit
    • Jeff Layton's avatar
      ceph: fix endianness bug in frag_tree_split_cmp · fe2ed425
      Jeff Layton authored
      sparse says:
          fs/ceph/inode.c:308:36: warning: incorrect type in argument 1 (different base types)
          fs/ceph/inode.c:308:36:    expected unsigned int [unsigned] [usertype] a
          fs/ceph/inode.c:308:36:    got restricted __le32 [usertype] frag
          fs/ceph/inode.c:308:46: warning: incorrect type in argument 2 (different base types)
          fs/ceph/inode.c:308:46:    expected unsigned int [unsigned] [usertype] b
          fs/ceph/inode.c:308:46:    got restricted __le32 [usertype] frag
      We need to convert these values to host-endian before calling the
      Fixes: a407846e ("ceph: don't assume frag tree splits in mds reply are sorted")
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Reviewed-by: default avatarSage Weil <sage@redhat.com>
      Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
  4. 09 Dec, 2016 1 commit
  5. 29 Oct, 2016 2 commits
  6. 18 Oct, 2016 1 commit
  7. 08 Oct, 2016 1 commit
  8. 28 Sep, 2016 1 commit
  9. 22 Sep, 2016 2 commits
    • Jan Kara's avatar
      fs: Give dentry to inode_change_ok() instead of inode · 31051c85
      Jan Kara authored
      inode_change_ok() will be resposible for clearing capabilities and IMA
      extended attributes and as such will need dentry. Give it as an argument
      to inode_change_ok() instead of an inode. Also rename inode_change_ok()
      to setattr_prepare() to better relect that it does also some
      modifications in addition to checks.
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
    • Jan Kara's avatar
      ceph: Propagate dentry down to inode_change_ok() · fd5472ed
      Jan Kara authored
      To avoid clearing of capabilities or security related extended
      attributes too early, inode_change_ok() will need to take dentry instead
      of inode. ceph_setattr() has the dentry easily available but
      __ceph_setattr() is also called from ceph_set_acl() where dentry is not
      easily available. Luckily that call path does not need inode_change_ok()
      to be called anyway. So reorganize functions a bit so that
      inode_change_ok() is called only from paths where dentry is available.
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Acked-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
  10. 28 Jul, 2016 7 commits
  11. 11 Jun, 2016 1 commit
    • Linus Torvalds's avatar
      vfs: make the string hashes salt the hash · 8387ff25
      Linus Torvalds authored
      We always mixed in the parent pointer into the dentry name hash, but we
      did it late at lookup time.  It turns out that we can simplify that
      lookup-time action by salting the hash with the parent pointer early
      instead of late.
      A few other users of our string hashes also wanted to mix in their own
      pointers into the hash, and those are updated to use the same mechanism.
      Hash users that don't have any particular initial salt can just use the
      NULL pointer as a no-salt.
      Cc: Vegard Nossum <vegard.nossum@oracle.com>
      Cc: George Spelvin <linux@sciencehorizons.net>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
  12. 25 May, 2016 12 commits
  13. 23 Apr, 2016 2 commits