orangefs: simplify orangefs_inode_is_stale
authorMartin Brandenburg <martin@omnibond.com>
Tue, 6 Feb 2018 14:01:25 +0000 (14:01 +0000)
committerMike Marshall <hubcap@omnibond.com>
Tue, 6 Feb 2018 21:38:13 +0000 (16:38 -0500)
commit480e5ae9b860c8a1c74ab9414f9bd78a43ad356f
tree2a8c054b3169165ac271dfc55cdc3d242bc69d4b
parentcf546ab6b189ab8b3acb26bbc2f0af4df21f16c7
orangefs: simplify orangefs_inode_is_stale

Check whether this is a new inode at location of call.

Raises the question of what to do with an unknown inode type.  Old code
would've marked the inode bad and returned ESTALE.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-utils.c