diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-13 10:13:55 +0900 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-05-02 14:35:03 +0200 |
commit | af590881870f4478e1e273022f9fc1f8187c63ff (patch) | |
tree | 70f5396a83787b243b3a0d5ec1e469c8f85122a1 /fs/f2fs/xattr.h | |
parent | 5195be67bd41fae65dbbf474729ea197613f25f1 (diff) | |
download | kernel_samsung_tuna-af590881870f4478e1e273022f9fc1f8187c63ff.zip kernel_samsung_tuna-af590881870f4478e1e273022f9fc1f8187c63ff.tar.gz kernel_samsung_tuna-af590881870f4478e1e273022f9fc1f8187c63ff.tar.bz2 |
f2fs: introduce __find_xattr for readability
The __find_xattr is to search the wanted xattr entry starting from the
base_addr.
If not found, the returned entry is the last empty xattr entry that can be
allocated newly.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/xattr.h')
-rw-r--r-- | fs/f2fs/xattr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/xattr.h b/fs/f2fs/xattr.h index 3c0817b..c3ec042 100644 --- a/fs/f2fs/xattr.h +++ b/fs/f2fs/xattr.h @@ -51,7 +51,7 @@ struct f2fs_xattr_entry { #define XATTR_HDR(ptr) ((struct f2fs_xattr_header *)(ptr)) #define XATTR_ENTRY(ptr) ((struct f2fs_xattr_entry *)(ptr)) -#define XATTR_FIRST_ENTRY(ptr) (XATTR_ENTRY(XATTR_HDR(ptr)+1)) +#define XATTR_FIRST_ENTRY(ptr) (XATTR_ENTRY(XATTR_HDR(ptr) + 1)) #define XATTR_ROUND (3) #define XATTR_ALIGN(size) ((size + XATTR_ROUND) & ~XATTR_ROUND) @@ -69,7 +69,6 @@ struct f2fs_xattr_entry { !IS_XATTR_LAST_ENTRY(entry);\ entry = XATTR_NEXT_ENTRY(entry)) - #define MIN_OFFSET XATTR_ALIGN(PAGE_SIZE - \ sizeof(struct node_footer) - \ sizeof(__u32)) |