diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-02-12 09:45:08 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-02-12 09:45:08 -0500 |
commit | e1df36d2f18254d0690a0fbe036cece74ec311b8 (patch) | |
tree | 34823b4533c7fe2d5a329a03b99faa6bd0a88956 /fs/btrfs/super.c | |
parent | 536ac8ae86e68bb5574d7cc81c7d229a86b82601 (diff) | |
download | linux-stable-e1df36d2f18254d0690a0fbe036cece74ec311b8.tar.gz linux-stable-e1df36d2f18254d0690a0fbe036cece74ec311b8.tar.bz2 linux-stable-e1df36d2f18254d0690a0fbe036cece74ec311b8.zip |
Btrfs: don't clean old snapshots on sync(1)
Cleaning old snapshots can make sync(1) somewhat slow, and some users
and applications still use it in a global fsync kind of workload.
This patch changes btrfs not to clean old snapshots during sync, which is
safe from a FS consistency point of view. The major downside is that it
makes it difficult to tell when old snapshots have been reaped and
the space they were using has been reclaimed. A new ioctl will be added
for this purpose instead.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 66b8341e2dba..19a4daf03ccb 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -379,7 +379,6 @@ int btrfs_sync_fs(struct super_block *sb, int wait) btrfs_start_delalloc_inodes(root); btrfs_wait_ordered_extents(root, 0); - btrfs_clean_old_snapshots(root); trans = btrfs_start_transaction(root, 1); ret = btrfs_commit_transaction(trans, root); sb->s_dirt = 0; |