1. 02 6月, 2012 3 次提交
    • M
      vfs: split do_lookup() · 697f514d
      Miklos Szeredi 提交于
      Split do_lookup() into two functions:
      
        lookup_fast() - does cached lookup without i_mutex
        lookup_slow() - does lookup with i_mutex
      
      Both follow managed dentries.
      
      The new functions are needed by atomic_open.
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      697f514d
    • J
      Btrfs: move over to use ->update_time · e41f941a
      Josef Bacik 提交于
      Btrfs had been doing it's own file_update_time so we could catch ENOSPC
      properly, so just update our btrfs_update_time to work with the new stuff and
      then we'll be fancy later.  Thanks,
      Signed-off-by: NJosef Bacik <josef@redhat.com>
      e41f941a
    • J
      fs: introduce inode operation ->update_time · c3b2da31
      Josef Bacik 提交于
      Btrfs has to make sure we have space to allocate new blocks in order to modify
      the inode, so updating time can fail.  We've gotten around this by having our
      own file_update_time but this is kind of a pain, and Christoph has indicated he
      would like to make xfs do something different with atime updates.  So introduce
      ->update_time, where we will deal with i_version an a/m/c time updates and
      indicate which changes need to be made.  The normal version just does what it
      has always done, updates the time and marks the inode dirty, and then
      filesystems can choose to do something different.
      
      I've gone through all of the users of file_update_time and made them check for
      errors with the exception of the fault code since it's complicated and I wasn't
      quite sure what to do there, also Jan is going to be pushing the file time
      updates into page_mkwrite for those who have it so that should satisfy btrfs and
      make it not a big deal to check the file_update_time() return code in the
      generic fault path. Thanks,
      Signed-off-by: NJosef Bacik <josef@redhat.com>
      c3b2da31
  2. 01 6月, 2012 15 次提交
  3. 31 5月, 2012 22 次提交