diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-10-10 05:36:26 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-25 21:26:13 -0400 |
commit | a4633357ac610cd2f8740e28a31fc148a7960421 (patch) | |
tree | 5c28962f355c545f888ab7b8e95e8bce5c2de599 /fs/ocfs2/resize.h | |
parent | 3049cfe24ef3872ba74f90630356722cf988b80d (diff) | |
download | op-kernel-dev-a4633357ac610cd2f8740e28a31fc148a7960421.zip op-kernel-dev-a4633357ac610cd2f8740e28a31fc148a7960421.tar.gz |
fs: clean up dentry lru modification
Always do a list_del_init on the LRU to make sure the list_empty invariant for
not beeing on the LRU always holds true, and fold dentry_lru_del_init into
dentry_lru_del. Replace the dentry_lru_add_tail primitive with a
dentry_lru_move_tail operations that simpler when the dentry already is one
the list, which is always is. Move the list_empty into dentry_lru_add to
fit the scheme of the other lru helpers, and simplify locking once we
move to a separate LRU lock.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/resize.h')
0 files changed, 0 insertions, 0 deletions