orangefs: remove print_dentry

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: refactor d_revalidate

Add a helper just for the lookup operation, and keep the rest in the main
d_revalidate implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: dentry can't be NULL in ->d_revalidate

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: fix parent handling in d_revalidate

We need to use dget_locked to get safe access to the parent dentry.
On the other hand we know it's there so no need to check for NULL.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: handle service_action error in d_revalidate

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove the revalidate_failed flag

We d_drop to unhash any dentry that failed validation, and unhashed
dentries are always delete on the final put without even calling into
->d_delete.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: remove immutable check from truncate

inode_change_ok already takes care of this.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
orangefs: merge pvfs2_truncate_inode into pvfs2_setattr_size

Signed-off-by: Mike Marshall <hubcap@omnibond.com>