]> git.baikalelectronics.ru Git - kernel.git/commit
FS-Cache: Start processing an object's operations on that object's death
authorDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:11:45 +0000 (18:11 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:11:45 +0000 (18:11 +0000)
commitbba5e8535eb198124f7b3fefc2e56ba81c8e2033
tree90ec6edd77ddb7666dbf7069aa2e001f155cea49
parent974c89f7fae31d2361a004809b6b44e1a4ceaada
FS-Cache: Start processing an object's operations on that object's death

Start processing an object's operations when that object moves into the DYING
state as the object cannot be destroyed until all its outstanding operations
have completed.

Furthermore, make sure that read and allocation operations handle being woken
up on a dead object.  Such events are recorded in the Allocs.abt and
Retrvls.abt statistics as viewable through /proc/fs/fscache/stats.

The code for waiting for object activation for the read and allocation
operations is also extracted into its own function as it is much the same in
all cases, differing only in the stats incremented.

Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/filesystems/caching/fscache.txt
fs/fscache/internal.h
fs/fscache/object.c
fs/fscache/page.c
fs/fscache/stats.c
include/linux/fscache-cache.h