]> Pileus Git - ~andy/linux/blobdiff - fs/fscache/cache.c
FS-Cache: Wrap checks on object state
[~andy/linux] / fs / fscache / cache.c
index b52aed1dca97fc5769d43a34f8e51de2e28fd653..129ea537f02396f6fbbd078e06b1d73a3d38bd1c 100644 (file)
@@ -115,7 +115,7 @@ struct fscache_cache *fscache_select_cache_for_object(
                                     struct fscache_object, cookie_link);
 
                cache = object->cache;
-               if (object->state >= FSCACHE_OBJECT_DYING ||
+               if (fscache_object_is_dying(object) ||
                    test_bit(FSCACHE_IOERROR, &cache->flags))
                        cache = NULL;