]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: always read hashed-key nodes under TNC mutex
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 20 Aug 2008 13:32:40 +0000 (16:32 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 Aug 2008 11:33:41 +0000 (14:33 +0300)
commit511777d24d189821c6842837965cc6a281e57e8f
tree36acaae9cbcca6f613c03e29f7e7fe61bb4f243b
parent10779ac4f73b9dfa3aa59dab75ae1a7f739af772
UBIFS: always read hashed-key nodes under TNC mutex

Leaf-nodes that have a hashed key are stored in the
leaf-node-cache (LNC) which is protected by the TNC
mutex.  Consequently, when reading a leaf node with
a hashed key (i.e. directory entries, xattr entries)
the TNC mutex is always required.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
fs/ubifs/tnc.c