fat: small optimization to __fat_readdir()
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Fri, 25 Jul 2008 08:46:44 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:34 +0000 (10:53 -0700)
commitdcd8c53f13f068ee039589d84fbd0baf686abc41
tree76dff1ae4a77a8756925e5dfe283051e12395a3e
parent98a15160049fc1a0f822047f33ff513906a35567
fat: small optimization to __fat_readdir()

This removes unnecessary parsing for directory entries.

If short_only, we don't need to parse longname.  And if !both and it found
the longname, we don't need shortname.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/dir.c