f2fs: clean up xattr operation
authorChao Yu <yuchao0@huawei.com>
Thu, 23 Mar 2017 05:38:25 +0000 (13:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 24 Mar 2017 19:10:52 +0000 (15:10 -0400)
commit89e9eabd7ded4680f3b0f8ddc7398a3909de57c8
tree433799bf85e08e0886216f990cefb1e52fbbda0c
parent99f4b917b0411f660b06ffd30f3dc36cf7b05710
f2fs: clean up xattr operation

1. don't allocate redundant memory in read_all_xattrs.
2. introduce RESERVED_XATTR_SIZE for cleanup.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c
fs/f2fs/xattr.h