1. 04 8月, 2010 1 次提交
  2. 02 8月, 2010 4 次提交
  3. 30 7月, 2010 1 次提交
  4. 27 7月, 2010 21 次提交
  5. 30 6月, 2010 2 次提交
  6. 29 6月, 2010 2 次提交
  7. 16 6月, 2010 1 次提交
  8. 15 6月, 2010 2 次提交
  9. 14 6月, 2010 1 次提交
  10. 12 6月, 2010 5 次提交
    • T
      ext4: Clean up s_dirt handling · a0375156
      Theodore Ts'o 提交于
      We don't need to set s_dirt in most of the ext4 code when journaling
      is enabled.  In ext3/4 some of the summary statistics for # of free
      inodes, blocks, and directories are calculated from the per-block
      group statistics when the file system is mounted or unmounted.  As a
      result the superblock doesn't have to be updated, either via the
      journal or by setting s_dirt.  There are a few exceptions, most
      notably when resizing the file system, where the superblock needs to
      be modified --- and in that case it should be done as a journalled
      operation if possible, and s_dirt set only in no-journal mode.
      
      This patch will optimize out some unneeded disk writes when using ext4
      with a journal.
      Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
      a0375156
    • D
      Btrfs: The file argument for fsync() is never null · 6f902af4
      Dan Carpenter 提交于
      The "file" argument for fsync is never null so we can remove this check.
      
      What drew my attention here is that 7ea80859: "drop unused dentry
      argument to ->fsync" introduced an unconditional dereference at the
      start of the function and that generated a smatch warning.
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      6f902af4
    • D
      Btrfs: handle ERR_PTR from posix_acl_from_xattr() · 834e7475
      Dan Carpenter 提交于
      posix_acl_from_xattr() returns both ERR_PTRs and null, but it's OK to
      pass null values to set_cached_acl()
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      834e7475
    • S
      Btrfs: avoid BUG when dropping root and reference in same transaction · 15e70000
      Sage Weil 提交于
      If btrfs_ioctl_snap_destroy() deletes a snapshot but finishes
      with end_transaction(), the cleaner kthread may come in and
      drop the root in the same transaction.  If that's the case, the
      root's refs still == 1 in the tree when btrfs_del_root() deletes
      the item, because commit_fs_roots() hasn't updated it yet (that
      happens during the commit).
      
      This wasn't a problem before only because
      btrfs_ioctl_snap_destroy() would commit the transaction before dropping
      the dentry reference, so the dead root wouldn't get queued up until
      after the fs root item was updated in the btree.
      
      Since it is not an error to drop the root reference and the root in the
      same transaction, just drop the BUG_ON() in btrfs_del_root().
      Signed-off-by: NSage Weil <sage@newdream.net>
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      15e70000
    • S
      Btrfs: prohibit a operation of changing acl's mask when noacl mount option used · 731e3d1b
      Shi Weihua 提交于
      when used Posix File System Test Suite(pjd-fstest) to test btrfs,
      some cases about setfacl failed when noacl mount option used.
      I simplified used commands in pjd-fstest, and the following steps
      can reproduce it.
      ------------------------
      # cd btrfs-part/
      # mkdir aaa
      # setfacl -m m::rw aaa    <- successed, but not expected by pjd-fstest.
      ------------------------
      I checked ext3, a warning message occured, like as:
        setfacl: aaa/: Operation not supported
      Certainly, it's expected by pjd-fstest.
      
      So, i compared acl.c of btrfs and ext3. Based on that, a patch created.
      Fortunately, it works.
      Signed-off-by: NShi Weihua <shiwh@cn.fujitsu.com>
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      731e3d1b