diff options
author | Mateusz Guzik <mjguzik@gmail.com> | 2023-11-04 23:11:17 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-11-18 15:00:01 +0100 |
commit | db3db63b1d17c98f69e894edaa2b0b364ecde7a9 (patch) | |
tree | d20b23d1b4815a16927a0585131b3835be3db45b /include/linux/writeback.h | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
vfs: remove a redundant might_sleep in wait_on_inode
wait_on_bit already does it.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20231104221117.2584708-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/writeback.h')
-rw-r--r-- | include/linux/writeback.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 083387c00f0c..6d0a14f7019d 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -193,7 +193,6 @@ void inode_io_list_del(struct inode *inode); /* writeback.h requires fs.h; it, too, is not included from here. */ static inline void wait_on_inode(struct inode *inode) { - might_sleep(); wait_on_bit(&inode->i_state, __I_NEW, TASK_UNINTERRUPTIBLE); } |