]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: enhance lookup xattr
authorChao Yu <yuchao0@huawei.com>
Tue, 24 Jan 2017 12:39:51 +0000 (20:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 04:24:51 +0000 (20:24 -0800)
commit01ed5d422fe8e4fb2fc8d084dd8830ef1485e9d7
tree59e1ea714f494a85ab6875d3204058765c9afe0d
parentee6609e36524ac6cbc2bbad36004d8b55eded713
f2fs: enhance lookup xattr

Previously, in getxattr we will load all entries both in inline xattr and
xattr node block, and then do the lookup in all entries, but our lookup
flow shows low efficiency, since if we can lookup and hit in inline xattr
of inode page cache first, we don't need to load and lookup xattr node
block, which can obviously save cpu time and IO latency.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: initialize NULL to avoid warning]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c
fs/f2fs/xattr.h