diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index ce0cd29efa9e..7f29464c0ebf 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1139,7 +1139,7 @@ int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync) | |||
1139 | /* | 1139 | /* |
1140 | * ok we haven't committed the transaction yet, lets do a commit | 1140 | * ok we haven't committed the transaction yet, lets do a commit |
1141 | */ | 1141 | */ |
1142 | if (file && file->private_data) | 1142 | if (file->private_data) |
1143 | btrfs_ioctl_trans_end(file); | 1143 | btrfs_ioctl_trans_end(file); |
1144 | 1144 | ||
1145 | trans = btrfs_start_transaction(root, 0); | 1145 | trans = btrfs_start_transaction(root, 0); |