diff options
author | Al Viro <[email protected]> | 2011-09-14 18:55:41 +0100 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-09-14 11:31:55 -0700 |
commit | 1d2ef5901483004d74947bbf78d5146c24038fe7 (patch) | |
tree | add2cc75116bf7588434f212bb8dd52d32b320d5 /lib/mpi/mpiutil.c | |
parent | 003f6c9df54970d8b19578d195b3e2b398cdbde2 (diff) |
restore pinning the victim dentry in vfs_rmdir()/vfs_rename_dir()
We used to get the victim pinned by dentry_unhash() prior to commit
64252c75a219 ("vfs: remove dget() from dentry_unhash()") and ->rmdir()
and ->rename() instances relied on that; most of them don't care, but
ones that used d_delete() themselves do. As the result, we are getting
rmdir() oopses on NFS now.
Just grab the reference before locking the victim and drop it explicitly
after unlocking, same as vfs_rename_other() does.
Signed-off-by: Al Viro <[email protected]>
Tested-by: Simon Kirby <[email protected]>
Cc: [email protected] (3.0.x)
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions