File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,8 @@ static int cachefiles_mark_object_active(struct cachefiles_cache *cache,
263263void cachefiles_mark_object_inactive (struct cachefiles_cache * cache ,
264264 struct cachefiles_object * object )
265265{
266+ blkcnt_t i_blocks = d_backing_inode (object -> dentry )-> i_blocks ;
267+
266268 write_lock (& cache -> active_lock );
267269 rb_erase (& object -> active_node , & cache -> active_nodes );
268270 clear_bit (CACHEFILES_OBJECT_ACTIVE , & object -> flags );
@@ -273,8 +275,7 @@ void cachefiles_mark_object_inactive(struct cachefiles_cache *cache,
273275 /* This object can now be culled, so we need to let the daemon know
274276 * that there is something it can remove if it needs to.
275277 */
276- atomic_long_add (d_backing_inode (object -> dentry )-> i_blocks ,
277- & cache -> b_released );
278+ atomic_long_add (i_blocks , & cache -> b_released );
278279 if (atomic_inc_return (& cache -> f_released ))
279280 cachefiles_state_changed (cache );
280281}
You can’t perform that action at this time.
0 commit comments