]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] exportfs: add find_acceptable_alias helper
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Jan 2006 01:43:52 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:28 +0000 (19:20 -0800)
commite78be74db99d8e168f2adbdabf706ef52f323a95
tree6e74677c01a13d2ec5285df9bffd34357b966e57
parent2d2d054c2735669d35a2e8952b0746c7a6e483e1
[PATCH] exportfs: add find_acceptable_alias helper

find_exported_dentry contains two duplicate loops to find an alias that the
acceptable callback likes.  Split this out to a new helper and switch from
list_for_each to list_for_each_entry to make it more readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exportfs/expfs.c