Take two i_mutexes on non-directory objects
void lock_two_nondirectories(struct inode * inode1, struct inode * inode2);
inode1
first inode to lock
inode2
second inode to lock
Lock any non-NULL argument that is not a directory. Zero, one or two objects may be locked by this function.