ntfs: don't start lookup from the same block in ntfs_mft_record_lookup()
authorPaulo Alcantara <pcacjr@gmail.com>
Mon, 29 Aug 2011 05:49:32 +0000 (05:49 +0000)
committerPaulo Alcantara <pcacjr@gmail.com>
Sun, 11 Sep 2011 04:09:59 +0000 (04:09 +0000)
commit8edf44b7fb1a4f29029b93c63285c4431358bbe1
treefafa9b1d8620e202986d1b13692de879ede2ef3d
parentc65a32b86a09f997cf443149c0dc9acfb6d20186
ntfs: don't start lookup from the same block in ntfs_mft_record_lookup()

ntfs_mft_record_lookup() always started its lookup from the same block,
which was though a mistake. So the lookup became very slow. Now
determine its starting block number from the calculated MFT record's LCN
number.

Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
core/fs/ntfs/ntfs.c