]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 20:03:31 +0000 (13:03 -0700)
commitc4e8d54f595b01d30e9b2793413d44f83deb7450
tree90ede1626994e8d63457159df6c2718e50ba5478
parent521cb40b0c44418a4fd36dc633f575813d59a43d
dcache.c: create helper function for duplicated functionality

commit c826cb7dfce80512c26c984350077a25046bd215 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/dcache.c