Skip to content

Commit

Permalink
ext4: fix an incorrect comment about i_mutex
Browse files Browse the repository at this point in the history
i_mutex is not held when ->sync_file is called.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Andy Lutomirski authored and Theodore Ts'o committed Dec 25, 2012
1 parent 53e8726 commit ad96f71
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ext4/fsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ static int __sync_inode(struct inode *inode, int datasync)
*
* What we do is just kick off a commit and wait on it. This will snapshot the
* inode to disk.
*
* i_mutex lock is held when entering and exiting this function
*/

int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
Expand Down

0 comments on commit ad96f71

Please sign in to comment.