]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: do not use key type in list_sort
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 8 Aug 2010 09:25:33 +0000 (12:25 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 30 Aug 2010 07:19:07 +0000 (10:19 +0300)
commita695071b2b6b81617e7738ce75092a9fa4bf366d
treed4e28ead7b0192942bd9f5665ff31fc57a572e1e
parent63a4dc8a4a485d22da95c582606f786208267d0c
UBIFS: do not use key type in list_sort

In comparison function for 'list_sort()' we use key type to distinguish between
node types. However, we have a bit simper way to detect node type -
'snod->type'. This more logical to use, comparing to decoding key types. Also
allows to get rid of 2 local variables.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/gc.c