diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-02-05 10:41:13 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:26:51 +0200 |
commit | 7a5a07a81062915c65ce27e80608b1c819b1f936 (patch) | |
tree | b80fdd6c500c9421911de126f1dacfd4138aa130 /fs/btrfs/file.c | |
parent | 4d31778aa2fa342f5f92ca4025b293a1729161d1 (diff) | |
download | blackbird-obmc-linux-7a5a07a81062915c65ce27e80608b1c819b1f936.tar.gz blackbird-obmc-linux-7a5a07a81062915c65ce27e80608b1c819b1f936.zip |
btrfs: Remove userspace transaction ioctls
Commit 3558d4f88ec8 ("btrfs: Deprecate userspace transaction ioctls")
marked the beginning of the end of userspace transaction. This commit
finishes the job! There are no known users and ceph does not use the
ioctl anymore.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Acked-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 8cac40005e6c..6d878f1d1082 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1997,8 +1997,6 @@ int btrfs_release_file(struct inode *inode, struct file *filp) { struct btrfs_file_private *private = filp->private_data; - if (private && private->trans) - btrfs_ioctl_trans_end(filp); if (private && private->filldir_buf) kfree(private->filldir_buf); kfree(private); @@ -2190,12 +2188,6 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) } /* - * ok we haven't committed the transaction yet, lets do a commit - */ - if (file->private_data) - btrfs_ioctl_trans_end(file); - - /* * We use start here because we will need to wait on the IO to complete * in btrfs_sync_log, which could require joining a transaction (for * example checking cross references in the nocow path). If we use join |