1. 24 Aug, 2011 1 commit
  2. 08 Aug, 2011 3 commits
    • Johannes Weiner's avatar
      fuse: mark pages accessed when written to · 478e0841
      Johannes Weiner authored
      As fuse does not use the page cache library functions when userspace
      writes to a file, it did not benefit from 'c8236db9 mm: mark page
      accessed before we write_end()' that made sure pages are properly
      marked accessed when written to.
      Signed-off-by: default avatarJohannes Weiner <jweiner@redhat.com>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      478e0841
    • Johannes Weiner's avatar
      fuse: delete dead .write_begin and .write_end aops · b40cdd56
      Johannes Weiner authored
      Ever since 'ea9b9907 fuse: implement perform_write', the .write_begin
      and .write_end aops have been dead code.
      
      Their task - acquiring a page from the page cache, sending out a write
      request and releasing the page again - is now done batch-wise to
      maximize the number of pages send per userspace request.
      Signed-off-by: default avatarJohannes Weiner <jweiner@redhat.com>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      b40cdd56
    • Miklos Szeredi's avatar
      fuse: fix flock · 37fb3a30
      Miklos Szeredi authored
      Commit a9ff4f87 "fuse: support BSD locking semantics" overlooked a
      number of issues with supporing flock locks over existing POSIX
      locking infrastructure:
      
        - it's not backward compatible, passing flock(2) calls to userspace
          unconditionally (if userspace sets FUSE_POSIX_LOCKS)
      
        - it doesn't cater for the fact that flock locks are automatically
          unlocked on file release
      
        - it doesn't take into account the fact that flock exclusive locks
          (write locks) don't need an fd opened for write.
      
      The last one invalidates the original premise of the patch that flock
      locks can be emulated with POSIX locks.
      
      This patch fixes the first two issues.  The last one needs to be fixed
      in userspace if the filesystem assumed that a write lock will happen
      only on a file operned for write (as in the case of the current fuse
      library).
      Reported-by: default avatarSebastian Pipping <webmaster@hartwork.org>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      37fb3a30
  3. 01 Jun, 2011 1 commit
  4. 30 May, 2011 1 commit
  5. 29 May, 2011 34 commits