diff options
Diffstat (limited to 'fs/cachefiles/interface.c')
-rw-r--r-- | fs/cachefiles/interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cachefiles/interface.c b/fs/cachefiles/interface.c index 43eb5592cdea..57e17fe6121a 100644 --- a/fs/cachefiles/interface.c +++ b/fs/cachefiles/interface.c | |||
@@ -270,7 +270,7 @@ static void cachefiles_drop_object(struct fscache_object *_object) | |||
270 | #endif | 270 | #endif |
271 | 271 | ||
272 | /* delete retired objects */ | 272 | /* delete retired objects */ |
273 | if (test_bit(FSCACHE_COOKIE_RETIRED, &object->fscache.cookie->flags) && | 273 | if (test_bit(FSCACHE_OBJECT_RETIRED, &object->fscache.flags) && |
274 | _object != cache->cache.fsdef | 274 | _object != cache->cache.fsdef |
275 | ) { | 275 | ) { |
276 | _debug("- retire object OBJ%x", object->fscache.debug_id); | 276 | _debug("- retire object OBJ%x", object->fscache.debug_id); |
@@ -449,14 +449,14 @@ static int cachefiles_attr_changed(struct fscache_object *_object) | |||
449 | _debug("discard tail %llx", oi_size); | 449 | _debug("discard tail %llx", oi_size); |
450 | newattrs.ia_valid = ATTR_SIZE; | 450 | newattrs.ia_valid = ATTR_SIZE; |
451 | newattrs.ia_size = oi_size & PAGE_MASK; | 451 | newattrs.ia_size = oi_size & PAGE_MASK; |
452 | ret = notify_change(object->backer, &newattrs); | 452 | ret = notify_change(object->backer, &newattrs, NULL); |
453 | if (ret < 0) | 453 | if (ret < 0) |
454 | goto truncate_failed; | 454 | goto truncate_failed; |
455 | } | 455 | } |
456 | 456 | ||
457 | newattrs.ia_valid = ATTR_SIZE; | 457 | newattrs.ia_valid = ATTR_SIZE; |
458 | newattrs.ia_size = ni_size; | 458 | newattrs.ia_size = ni_size; |
459 | ret = notify_change(object->backer, &newattrs); | 459 | ret = notify_change(object->backer, &newattrs, NULL); |
460 | 460 | ||
461 | truncate_failed: | 461 | truncate_failed: |
462 | mutex_unlock(&object->backer->d_inode->i_mutex); | 462 | mutex_unlock(&object->backer->d_inode->i_mutex); |