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)
commit761e29f3bb19b05bea55285dfdf2d28e001a63b8
tree36acaae9cbcca6f613c03e29f7e7fe61bb4f243b
parent04da11bfcf511544ae19e0a7e5f994b3237752ac
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