dcache.c: create helper function for duplicated functionality
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2011 22:29:21 +0000 (15:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2011 22:29:21 +0000 (15:29 -0700)
commitc826cb7dfce80512c26c984350077a25046bd215
tree6230dc7babebfa008d67bd309de7562a0292ab8b
parent76ca07832842100b14a31ad8996dab7b0c28aa42
dcache.c: create helper function for duplicated functionality

This creates a helper function for he "try to ascend into the parent
directory" case, which was written out in triplicate before.  With all
the locking and subtle sequence number stuff, we really don't want to
duplicate that kind of code.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c