Commit db3db63b authored by Mateusz Guzik's avatar Mateusz Guzik Committed by Christian Brauner

vfs: remove a redundant might_sleep in wait_on_inode

wait_on_bit already does it.
Signed-off-by: default avatarMateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20231104221117.2584708-1-mjguzik@gmail.comSigned-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent b85ea95d
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment