diff options
author | Theodore Ts'o <tytso@mit.edu> | 2013-04-04 04:00:52 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-04 04:00:52 +0200 |
commit | b10a44c369d7b8a28825f1fd24f13dc31c2e3a25 (patch) | |
tree | 244d322cfb2a43b217c9f6ce2cb866856ef9e8ed /fs/ext4/ext4_jbd2.c | |
parent | ext4: add mutex_is_locked() assertion to ext4_truncate() (diff) | |
download | linux-b10a44c369d7b8a28825f1fd24f13dc31c2e3a25.tar.xz linux-b10a44c369d7b8a28825f1fd24f13dc31c2e3a25.zip |
ext4: add might_sleep() annotations
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Diffstat (limited to 'fs/ext4/ext4_jbd2.c')
-rw-r--r-- | fs/ext4/ext4_jbd2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 7058975e3a55..0e1dc9e70ce5 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c @@ -43,6 +43,8 @@ handle_t *__ext4_journal_start_sb(struct super_block *sb, unsigned int line, { journal_t *journal; + might_sleep(); + trace_ext4_journal_start(sb, nblocks, _RET_IP_); if (sb->s_flags & MS_RDONLY) return ERR_PTR(-EROFS); @@ -113,6 +115,8 @@ int __ext4_journal_get_write_access(const char *where, unsigned int line, { int err = 0; + might_sleep(); + if (ext4_handle_valid(handle)) { err = jbd2_journal_get_write_access(handle, bh); if (err) @@ -209,6 +213,8 @@ int __ext4_handle_dirty_metadata(const char *where, unsigned int line, { int err = 0; + might_sleep(); + if (ext4_handle_valid(handle)) { err = jbd2_journal_dirty_metadata(handle, bh); if (err) { |