]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: add dir_layout to inode
authorSage Weil <sage@newdream.net>
Tue, 16 Nov 2010 19:14:34 +0000 (11:14 -0800)
committerSage Weil <sage@newdream.net>
Wed, 12 Jan 2011 23:15:12 +0000 (15:15 -0800)
commit8403f4da5396b947ba6215f3d600f24eb05b6d8c
tree66e415bf31ea31a3e9360c0ce624fd20b6050c89
parentb1d6256ab80481c7e660520326c38f375686235c
ceph: add dir_layout to inode

Add a ceph_dir_layout to the inode, and calculate dentry hash values based
on the parent directory's specified dir_hash function.  This is needed
because the old default Linux dcache hash function is extremely week and
leads to a poor distribution of files among dir fragments.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c
fs/ceph/export.c
fs/ceph/inode.c
fs/ceph/super.h
include/linux/ceph/ceph_fs.h
net/ceph/ceph_hash.c