ioctl.c (8257b2dc3c1a1057b84a589827354abdc4c767fd) ioctl.c (6c255e67cec1c38a0569c7f823eba63f9449ccf8)
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 4879 unchanged lines hidden (view full) ---

4888 return btrfs_ioctl_ino_to_path(root, argp);
4889 case BTRFS_IOC_LOGICAL_INO:
4890 return btrfs_ioctl_logical_to_ino(root, argp);
4891 case BTRFS_IOC_SPACE_INFO:
4892 return btrfs_ioctl_space_info(root, argp);
4893 case BTRFS_IOC_SYNC: {
4894 int ret;
4895
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 4879 unchanged lines hidden (view full) ---

4888 return btrfs_ioctl_ino_to_path(root, argp);
4889 case BTRFS_IOC_LOGICAL_INO:
4890 return btrfs_ioctl_logical_to_ino(root, argp);
4891 case BTRFS_IOC_SPACE_INFO:
4892 return btrfs_ioctl_space_info(root, argp);
4893 case BTRFS_IOC_SYNC: {
4894 int ret;
4895
4896 ret = btrfs_start_delalloc_roots(root->fs_info, 0);
4896 ret = btrfs_start_delalloc_roots(root->fs_info, 0, -1);
4897 if (ret)
4898 return ret;
4899 ret = btrfs_sync_fs(file->f_dentry->d_sb, 1);
4900 return ret;
4901 }
4902 case BTRFS_IOC_START_SYNC:
4903 return btrfs_ioctl_start_sync(root, argp);
4904 case BTRFS_IOC_WAIT_SYNC:

--- 55 unchanged lines hidden ---
4897 if (ret)
4898 return ret;
4899 ret = btrfs_sync_fs(file->f_dentry->d_sb, 1);
4900 return ret;
4901 }
4902 case BTRFS_IOC_START_SYNC:
4903 return btrfs_ioctl_start_sync(root, argp);
4904 case BTRFS_IOC_WAIT_SYNC:

--- 55 unchanged lines hidden ---