summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 3c2ae0e4f25a..1078c65128c5 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -205,14 +205,11 @@ static int join_running_log_trans(struct btrfs_root *root)
205 * until you call btrfs_end_log_trans() or it makes any future 205 * until you call btrfs_end_log_trans() or it makes any future
206 * log transactions wait until you call btrfs_end_log_trans() 206 * log transactions wait until you call btrfs_end_log_trans()
207 */ 207 */
208int btrfs_pin_log_trans(struct btrfs_root *root) 208void btrfs_pin_log_trans(struct btrfs_root *root)
209{ 209{
210 int ret = -ENOENT;
211
212 mutex_lock(&root->log_mutex); 210 mutex_lock(&root->log_mutex);
213 atomic_inc(&root->log_writers); 211 atomic_inc(&root->log_writers);
214 mutex_unlock(&root->log_mutex); 212 mutex_unlock(&root->log_mutex);
215 return ret;
216} 213}
217 214
218/* 215/*