]> git.baikalelectronics.ru Git - kernel.git/commit
fs/adfs: dir: use pointers to access directory head/tails
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 9 Dec 2019 11:10:21 +0000 (11:10 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Jan 2020 01:12:41 +0000 (20:12 -0500)
commit467ba9cbd27e92b019beef7ab8e6e82a2d19d466
tree6381bbae78c24b096f32180e4e7ab7e6389e3e46
parent6b737e3a26088532bb663795a4e239643012cb97
fs/adfs: dir: use pointers to access directory head/tails

Add and use pointers in the adfs_dir structure to access the directory
head and tail structures, which will always be contiguous in a buffer.
This allows us to avoid memcpy()ing the data in the new directory code,
making it slightly more efficient.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/adfs.h
fs/adfs/dir_f.c
fs/adfs/dir_fplus.c