Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02539d71 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jeremy Kerr
Browse files

[POWERPC] spufs: lockdep annotations for spufs_dir_close



We need to acquire the parent i_mutex with I_MUTEX_PARENT to keep
lockdep happy.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 7a28a154
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -224,7 +224,7 @@ static int spufs_dir_close(struct inode *inode, struct file *file)
	parent = dir->d_parent->d_inode;
	parent = dir->d_parent->d_inode;
	ctx = SPUFS_I(dir->d_inode)->i_ctx;
	ctx = SPUFS_I(dir->d_inode)->i_ctx;


	mutex_lock(&parent->i_mutex);
	mutex_lock_nested(&parent->i_mutex, I_MUTEX_PARENT);
	ret = spufs_rmdir(parent, dir);
	ret = spufs_rmdir(parent, dir);
	mutex_unlock(&parent->i_mutex);
	mutex_unlock(&parent->i_mutex);
	WARN_ON(ret);
	WARN_ON(ret);