diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-04 13:14:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-04 13:14:28 -0400 |
commit | f956d08a56732c61a4d44e8034eeeedfc06fe721 (patch) | |
tree | 2debddf1044e4bfd905ede07480a2867504a4ae3 /net | |
parent | cf626b0da78df6669c6b5f51ddd9a70a0702e579 (diff) | |
parent | eb915375757cd32c5abf7aea4caa76fe7edf8ef4 (diff) |
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc vfs updates from Al Viro:
"Misc bits and pieces not fitting into anything more specific"
* 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
vfs: delete unnecessary assignment in vfs_listxattr
Documentation: filesystems: update filesystem locking documentation
vfs: namei: use path_equal() in follow_dotdot()
fs.h: fix outdated comment about file flags
__inode_security_revalidate() never gets NULL opt_dentry
make xattr_getsecurity() static
vfat: simplify checks in vfat_lookup()
get rid of dead code in d_find_alias()
it's SB_BORN, not MS_BORN...
msdos_rmdir(): kill BS comment
remove rpc_rmdir()
fs: avoid fdput() after failed fdget() in vfs_dedupe_file_range()
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index c81ef5e6c981..4fda18d47e2c 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -609,22 +609,6 @@ static int __rpc_rmdir(struct inode *dir, struct dentry *dentry) | |||
609 | return ret; | 609 | return ret; |
610 | } | 610 | } |
611 | 611 | ||
612 | int rpc_rmdir(struct dentry *dentry) | ||
613 | { | ||
614 | struct dentry *parent; | ||
615 | struct inode *dir; | ||
616 | int error; | ||
617 | |||
618 | parent = dget_parent(dentry); | ||
619 | dir = d_inode(parent); | ||
620 | inode_lock_nested(dir, I_MUTEX_PARENT); | ||
621 | error = __rpc_rmdir(dir, dentry); | ||
622 | inode_unlock(dir); | ||
623 | dput(parent); | ||
624 | return error; | ||
625 | } | ||
626 | EXPORT_SYMBOL_GPL(rpc_rmdir); | ||
627 | |||
628 | static int __rpc_unlink(struct inode *dir, struct dentry *dentry) | 612 | static int __rpc_unlink(struct inode *dir, struct dentry *dentry) |
629 | { | 613 | { |
630 | int ret; | 614 | int ret; |