diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-03-06 13:55:01 +0800 |
---|---|---|
committer | Josef Bacik <jbacik@fb.com> | 2014-03-10 15:17:27 -0400 |
commit | 6c255e67cec1c38a0569c7f823eba63f9449ccf8 (patch) | |
tree | 0e23bdebb81ce14843d85dd0deb861cc2c0ef5fb /fs/btrfs/ioctl.c | |
parent | 24af7dd1881f9f5c13c7d82e22d7858137383766 (diff) | |
download | blackbird-op-linux-6c255e67cec1c38a0569c7f823eba63f9449ccf8.tar.gz blackbird-op-linux-6c255e67cec1c38a0569c7f823eba63f9449ccf8.zip |
Btrfs: don't flush all delalloc inodes when we doesn't get s_umount lock
We needn't flush all delalloc inodes when we doesn't get s_umount lock,
or we would make the tasks wait for a long time.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 57bc9f33fa3c..e1747701f520 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -4893,7 +4893,7 @@ long btrfs_ioctl(struct file *file, unsigned int case BTRFS_IOC_SYNC: { int ret; - ret = btrfs_start_delalloc_roots(root->fs_info, 0); + ret = btrfs_start_delalloc_roots(root->fs_info, 0, -1); if (ret) return ret; ret = btrfs_sync_fs(file->f_dentry->d_sb, 1); |