vfs: lock_two_nondirectories: allow directory args
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 1 Apr 2014 15:08:43 +0000 (17:08 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Apr 2014 15:08:43 +0000 (17:08 +0200)
commit4fd699ae3fbca2ac760137e1d26f98a105f59f05
treede9f5b2d915d2a30fd1841a9fa7098de84a9c0ec
parent0b3974eb04c4874e85fa1d4fc70450d12f28611d
vfs: lock_two_nondirectories: allow directory args

lock_two_nondirectories warned if either of its args was a directory.
Instead just ignore the directory args.  This is needed for locking in
cross rename.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/inode.c