]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/f2fs/xattr.c
f2fs: avoid unneeded lookup when xattr name length is too long
authorChao Yu <chao2.yu@samsung.com>
Sat, 22 Mar 2014 06:59:45 +0000 (14:59 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 1 Apr 2014 09:54:24 +0000 (18:54 +0900)
commit6e452d69d421e10e99446c6de16a19604149c40f
tree78236f48ae6d645bb9a918181e06ce8f53ae8aa8
parentdf0f8dc0e154de13e3a54846f384b674dd557c85
f2fs: avoid unneeded lookup when xattr name length is too long

In f2fs_setxattr we have limit this attribute name length, so we should also
check it in f2fs_getxattr to avoid useless lookup caused by invalid name length.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/xattr.c