aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 533b607f9cb5..ab2247d642c6 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -5066,7 +5066,7 @@ struct inode *ext4_iget(struct super_block *sb, unsigned long ino)
5066 transaction_t *transaction; 5066 transaction_t *transaction;
5067 tid_t tid; 5067 tid_t tid;
5068 5068
5069 spin_lock(&journal->j_state_lock); 5069 read_lock(&journal->j_state_lock);
5070 if (journal->j_running_transaction) 5070 if (journal->j_running_transaction)
5071 transaction = journal->j_running_transaction; 5071 transaction = journal->j_running_transaction;
5072 else 5072 else
@@ -5075,7 +5075,7 @@ struct inode *ext4_iget(struct super_block *sb, unsigned long ino)
5075 tid = transaction->t_tid; 5075 tid = transaction->t_tid;
5076 else 5076 else
5077 tid = journal->j_commit_sequence; 5077 tid = journal->j_commit_sequence;
5078 spin_unlock(&journal->j_state_lock); 5078 read_unlock(&journal->j_state_lock);
5079 ei->i_sync_tid = tid; 5079 ei->i_sync_tid = tid;
5080 ei->i_datasync_tid = tid; 5080 ei->i_datasync_tid = tid;
5081 } 5081 }