]> git.baikalelectronics.ru Git - kernel.git/commit
fs: improve DCACHE_REFERENCED usage
authorNick Piggin <npiggin@suse.de>
Sun, 10 Oct 2010 09:36:24 +0000 (05:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Oct 2010 01:26:12 +0000 (21:26 -0400)
commite7a9f45de8f3b5a118753fae91984f3911d81d6d
tree7bb17007af9812137eb2060fd9ef979e049f7acd
parent5d0a113415672bb20e36d3787e75941211dffbe8
fs: improve DCACHE_REFERENCED usage

dentry referenced bit is only set when installing the dentry back
onto the LRU. However with lazy LRU, the dentry can already be on
the LRU list at dput time, thus missing out on setting the referenced
bit. Fix this.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c