orangefs: user file_inode() where it is due
authorAmir Goldstein <amir73il@gmail.com>
Fri, 21 Oct 2016 04:33:57 +0000 (07:33 +0300)
committerMike Marshall <hubcap@omnibond.com>
Mon, 24 Oct 2016 18:29:39 +0000 (14:29 -0400)
commitd62a9025aee446994a706c711e45c6a655d9d348
treed2088769b7588959115d07fecae48bacfdf785d3
parent1001354ca34179f3db924eb66672442a173147dc
orangefs: user file_inode() where it is due

Replace wrong use of file->f_path.dentry->d_inode with file_inode(file).
In case orangefs ever finds itself as an overelayfs layer, it would want
to get its own inode and not overlayfs's inode.

DISCLAIMER: I did not test this patch because I do not know how to setup
            an orangefs mount

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c