FS-Cache: Wrap checks on object state

Wrap checks on object state (mostly outside of fs/fscache/object.c) with
inline functions so that the mechanism can be replaced.

Some of the state checks within object.c are left as-is as they will be
replaced.

Signed-off-by: David Howells <[email protected]>
Tested-By: Milosz Tanski <[email protected]>
Acked-by: Jeff Layton <[email protected]>
6 files changed