]> git.baikalelectronics.ru Git - kernel.git/commit
dcache: Add case-insensitive support d_ci_add() routine
authorBarry Naujok <bnaujok@sgi.com>
Wed, 21 May 2008 06:50:46 +0000 (16:50 +1000)
committerNiv Sardi <xaiki@debian.org>
Mon, 28 Jul 2008 06:58:39 +0000 (16:58 +1000)
commit9ad660422e0d34307c78ec761fc5e1414fc968e2
tree40b5fb192900c61a1c91be6ae8ea7432b61f18aa
parent2dd6c7ee97ff2eec443ce616a751afe7b0348c0a
dcache: Add case-insensitive support d_ci_add() routine

This add a dcache entry to the dcache for lookup, but changing the name
that is associated with the entry rather than the one passed in to the
lookup routine.

First, it sees if the case-exact match already exists in the dcache and
uses it if one exists. Otherwise, it allocates a new node with the new
name and splices it into the dcache.

Original code from ntfs_lookup in fs/ntfs/namei.c by Anton Altaparmakov.

Signed-off-by: Barry Naujok <bnaujok@sgi.com>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Acked-by: Christoph Hellwig <hch@infradead.org>
fs/dcache.c
include/linux/dcache.h