[PATCH] ufs: little directory lookup optimization
This patch make little optimization of ufs_find_entry like "ext2" does. Save number of page and reuse it again in the next call. Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
abf5d15fd2
commit
dd187a2603
@ -264,6 +264,7 @@ cg_found:
|
||||
ufsi->i_shadow = 0;
|
||||
ufsi->i_osync = 0;
|
||||
ufsi->i_oeftflag = 0;
|
||||
ufsi->i_dir_start_lookup = 0;
|
||||
memset(&ufsi->i_u1, 0, sizeof(ufsi->i_u1));
|
||||
|
||||
insert_inode_hash(inode);
|
||||
|
Reference in New Issue
Block a user