locking rules for ->dirty_inode()

Nikita Danilov
2002-09-20T14:55:12Z

Hello,

Documentation/filesystems/Locking states that all super operations may
block, but __set_page_dirty_buffers() calls

__mark_inode_dirty()->s_op->dirty_inode()

under mapping->private_lock spin lock. This seems strange, because file
systems' ->dirty_inode() assume that they are allowed to block. For
example, ext3_dirty_inode() allocates memory in

ext3_journal_start()->journal_start()->new_handle()->...

Nikita.