[PATCH 1/2] f2fs: clean up xattr operation

2017-03-23 Thread Chao Yu
1. don't allocate redundant memory in read_all_xattrs. 2. introduce RESERVED_XATTR_SIZE for cleanup. Signed-off-by: Chao Yu Reviewed-by: Kinglong Mee --- fs/f2fs/xattr.c | 25 +++-- fs/f2fs/xattr.h | 3 ++- 2 files changed, 13

[PATCH 1/2] f2fs: clean up xattr operation

2017-03-23 Thread Chao Yu
1. don't allocate redundant memory in read_all_xattrs. 2. introduce RESERVED_XATTR_SIZE for cleanup. Signed-off-by: Chao Yu Reviewed-by: Kinglong Mee --- fs/f2fs/xattr.c | 25 +++-- fs/f2fs/xattr.h | 3 ++- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git