ceph: enable/disable dentry complete flags via mount option
authorSage Weil <sage@newdream.net>
Tue, 10 Jan 2012 17:12:55 +0000 (09:12 -0800)
committerSage Weil <sage@newdream.net>
Thu, 12 Jan 2012 19:00:40 +0000 (11:00 -0800)
commita40dc6cc2e121abcbd1b22583ef5447763df510c
tree1c747cfabf33c6c9ad56811fabd22285816fc27a
parent46f72b349290d2bd7aecea38f02609d814332df6
ceph: enable/disable dentry complete flags via mount option

Enable/disable use of the dentry dir 'complete' flag via a mount option.
This lets the admin control whether ceph uses the dcache to satisfy
negative lookups or readdir when it has the entire directory contents in
its cache.

This is purely a performance optimization; correctness is guaranteed
whether it is enabled or not.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sage Weil <sage@newdream.net>
Documentation/filesystems/ceph.txt
fs/ceph/dir.c
fs/ceph/super.c
fs/ceph/super.h