1. 11 5月, 2015 1 次提交
  2. 16 4月, 2015 1 次提交
  3. 12 4月, 2015 4 次提交
  4. 01 4月, 2015 1 次提交
  5. 26 3月, 2015 1 次提交
  6. 04 3月, 2015 1 次提交
  7. 05 1月, 2015 1 次提交
  8. 10 11月, 2014 1 次提交
  9. 22 10月, 2014 1 次提交
  10. 17 9月, 2014 1 次提交
    • J
      ext3: Don't use MAXQUOTAS value · a93114e4
      Jan Kara 提交于
      MAXQUOTAS value defines maximum number of quota types VFS supports. This
      isn't necessarily the number of types ext3 supports and with addition of
      project quotas these two numbers stop matching. So make ext3 use its
      private definition.
      
      CC: linux-ext4@vger.kernel.org
      Signed-off-by: NJan Kara <jack@suse.cz>
      a93114e4
  11. 08 9月, 2014 1 次提交
    • T
      percpu_counter: add @gfp to percpu_counter_init() · 908c7f19
      Tejun Heo 提交于
      Percpu allocator now supports allocation mask.  Add @gfp to
      percpu_counter_init() so that !GFP_KERNEL allocation masks can be used
      with percpu_counters too.
      
      We could have left percpu_counter_init() alone and added
      percpu_counter_init_gfp(); however, the number of users isn't that
      high and introducing _gfp variants to all percpu data structures would
      be quite ugly, so let's just do the conversion.  This is the one with
      the most users.  Other percpu data structures are a lot easier to
      convert.
      
      This patch doesn't make any functional difference.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NJan Kara <jack@suse.cz>
      Acked-by: N"David S. Miller" <davem@davemloft.net>
      Cc: x86@kernel.org
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: "Theodore Ts'o" <tytso@mit.edu>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      908c7f19
  12. 20 8月, 2014 1 次提交
  13. 12 6月, 2014 1 次提交
    • A
      ->splice_write() via ->write_iter() · 8d020765
      Al Viro 提交于
      iter_file_splice_write() - a ->splice_write() instance that gathers the
      pipe buffers, builds a bio_vec-based iov_iter covering those and feeds
      it to ->write_iter().  A bunch of simple cases coverted to that...
      
      [AV: fixed the braino spotted by Cyrill]
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      8d020765
  14. 22 5月, 2014 1 次提交
    • J
      ext3: Fix deadlock in data=journal mode when fs is frozen · 166418cc
      Jan Kara 提交于
      When ext3 is used in data=journal mode, syncing filesystem makes sure
      all the data is committed in the journal but the data doesn't have to be
      checkpointed. ext3_freeze() then takes care of checkpointing all the
      data so all buffer heads are clean but pages can still have dangling
      dirty bits. So when flusher thread comes later when filesystem is
      frozen, it tries to write back dirty pages, ext3_journalled_writepage()
      tries to start a transaction and hangs waiting for frozen fs causing a
      deadlock because a holder of s_umount semaphore may be waiting for
      flusher thread to complete.
      
      The fix is luckily relatively easy. We don't have to start a transaction
      in ext3_journalled_writepage() when a page is just dirty (and doesn't
      have PageChecked set) because in that case all buffers should be already
      mapped (mapping must happen before writing a buffer to the journal) and
      it is enough to write them out. This optimization also solves the deadlock
      because block_write_full_page() will just find out there's no buffer to
      write and do nothing.
      Signed-off-by: NJan Kara <jack@suse.cz>
      166418cc
  15. 07 5月, 2014 5 次提交
  16. 04 4月, 2014 1 次提交
    • J
      mm + fs: store shadow entries in page cache · 91b0abe3
      Johannes Weiner 提交于
      Reclaim will be leaving shadow entries in the page cache radix tree upon
      evicting the real page.  As those pages are found from the LRU, an
      iput() can lead to the inode being freed concurrently.  At this point,
      reclaim must no longer install shadow pages because the inode freeing
      code needs to ensure the page tree is really empty.
      
      Add an address_space flag, AS_EXITING, that the inode freeing code sets
      under the tree lock before doing the final truncate.  Reclaim will check
      for this flag before installing shadow pages.
      Signed-off-by: NJohannes Weiner <hannes@cmpxchg.org>
      Reviewed-by: NRik van Riel <riel@redhat.com>
      Reviewed-by: NMinchan Kim <minchan@kernel.org>
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Cc: Bob Liu <bob.liu@oracle.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Dave Chinner <david@fromorbit.com>
      Cc: Greg Thelen <gthelen@google.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Jan Kara <jack@suse.cz>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Luigi Semenzato <semenzato@google.com>
      Cc: Mel Gorman <mgorman@suse.de>
      Cc: Metin Doslu <metin@citusdata.com>
      Cc: Michel Lespinasse <walken@google.com>
      Cc: Ozgun Erdogan <ozgun@citusdata.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Roman Gushchin <klamm@yandex-team.ru>
      Cc: Ryan Mallon <rmallon@gmail.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      91b0abe3
  17. 18 3月, 2014 1 次提交
  18. 13 3月, 2014 2 次提交
    • T
      fs: push sync_filesystem() down to the file system's remount_fs() · 02b9984d
      Theodore Ts'o 提交于
      Previously, the no-op "mount -o mount /dev/xxx" operation when the
      file system is already mounted read-write causes an implied,
      unconditional syncfs().  This seems pretty stupid, and it's certainly
      documented or guaraunteed to do this, nor is it particularly useful,
      except in the case where the file system was mounted rw and is getting
      remounted read-only.
      
      However, it's possible that there might be some file systems that are
      actually depending on this behavior.  In most file systems, it's
      probably fine to only call sync_filesystem() when transitioning from
      read-write to read-only, and there are some file systems where this is
      not needed at all (for example, for a pseudo-filesystem or something
      like romfs).
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      Cc: linux-fsdevel@vger.kernel.org
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Artem Bityutskiy <dedekind1@gmail.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Evgeniy Dushistov <dushistov@mail.ru>
      Cc: Jan Kara <jack@suse.cz>
      Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Cc: Anders Larsen <al@alarsen.net>
      Cc: Phillip Lougher <phillip@squashfs.org.uk>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
      Cc: Petr Vandrovec <petr@vandrovec.name>
      Cc: xfs@oss.sgi.com
      Cc: linux-btrfs@vger.kernel.org
      Cc: linux-cifs@vger.kernel.org
      Cc: samba-technical@lists.samba.org
      Cc: codalist@coda.cs.cmu.edu
      Cc: linux-ext4@vger.kernel.org
      Cc: linux-f2fs-devel@lists.sourceforge.net
      Cc: fuse-devel@lists.sourceforge.net
      Cc: cluster-devel@redhat.com
      Cc: linux-mtd@lists.infradead.org
      Cc: jfs-discussion@lists.sourceforge.net
      Cc: linux-nfs@vger.kernel.org
      Cc: linux-nilfs@vger.kernel.org
      Cc: linux-ntfs-dev@lists.sourceforge.net
      Cc: ocfs2-devel@oss.oracle.com
      Cc: reiserfs-devel@vger.kernel.org
      02b9984d
    • J
      ext3: Speedup WB_SYNC_ALL pass · 2299432e
      Jan Kara 提交于
      When doing filesystem wide sync, there's no need to force transaction
      commit separately for each inode because ext3_sync_fs() takes care of
      forcing commit at the end. Most of the time this slowness doesn't
      manifest because previous WB_SYNC_NONE writeback doesn't leave much to
      write but when there are processes aggressively creating new files and
      several filesystems to sync, the sync slowness can be noticeable. In the
      following test script sync(1) takes around 6 minutes when there are two
      ext3 filesystems mounted on a standard SATA drive. After this patch sync
      is about twice as fast in the default data=ordered mode. For
      data=writeback mode we have even bigger speedup.
      
      function run_writers
      {
        for (( i = 0; i < 10; i++ )); do
          mkdir $1/dir$i
          for (( j = 0; j < 40000; j++ )); do
            dd if=/dev/zero of=$1/dir$i/$j bs=4k count=4 &>/dev/null
          done &
        done
      }
      
      for dir in "$@"; do
        run_writers $dir
      done
      
      sleep 40
      time sync
      Signed-off-by: NJan Kara <jack@suse.cz>
      2299432e
  19. 04 3月, 2014 3 次提交
  20. 03 3月, 2014 5 次提交
  21. 26 1月, 2014 3 次提交
  22. 24 1月, 2014 2 次提交
  23. 16 10月, 2013 1 次提交
    • E
      ext3: Count journal as bsddf overhead in ext3_statfs · 2046fd18
      Eric Sandeen 提交于
      ext4 counts journal space as bsddf overhead, but ext3 does not.
      
      For some reason when I patched ext4 I thought I should leave
      ext3 alone, but frankly it makes more sense to fix it, I think.
      
      Otherwise we get inconsistent behavior from ext3 under ext3.ko,
      and ext3 under ext4.ko, which is not at all desirable...
      
      This is testable by xfstests shared/289, though it will need
      modification because it currently special-cases ext3.
      Signed-off-by: NEric Sandeen <sandeen@redhat.com>
      Signed-off-by: NJan Kara <jack@suse.cz>
      2046fd18