diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-09-17 10:55:51 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-21 11:05:27 -0400 |
commit | f0de181c9b48a397c5a2fbe63dcdd2a26a872695 (patch) | |
tree | 02dcf2a9806c241e96b7c47dbbc19f6f249f7a57 /fs/btrfs/ioctl.c | |
parent | c4fbb4300abd6f662c7d5049d01f868af9874069 (diff) | |
download | linux-f0de181c9b48a397c5a2fbe63dcdd2a26a872695.tar.gz linux-f0de181c9b48a397c5a2fbe63dcdd2a26a872695.tar.bz2 linux-f0de181c9b48a397c5a2fbe63dcdd2a26a872695.zip |
Btrfs: kill delay_iput arg to the wait_ordered functions
This is a left over of how we used to wait for ordered extents, which was to
grab the inode and then run filemap flush on it. However if we have an ordered
extent then we already are holding a ref on the inode, and we just use
btrfs_start_ordered_extent anyway, so there is no reason to have an extra ref on
the inode to start work on the ordered extent. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.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 1a5b9462dd9a..fd6557e7118a 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -574,7 +574,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir, if (ret) return ret; - btrfs_wait_ordered_extents(root, 0); + btrfs_wait_ordered_extents(root); pending_snapshot = kzalloc(sizeof(*pending_snapshot), GFP_NOFS); if (!pending_snapshot) |