f2fs: make f2fs_read_inline_data() more readable
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Chao Liu
In
f2fs_read_inline_data(), it is confused with checking ofinline_dataflag, as we checked it before calling. So this patch add some comments forf2fs_has_inline_data().Signed-off-by Chao Liu
It looks email address is missing, but it shows after I can apply this patch to my local git repo...
Could you please check your email client configuration?
Thanks,
Quoted 22 lines
---
fs/f2fs/f2fs.h| 4 ++++1 file changed, 4 insertions(+)fs/f2fs/f2fs.h +4
-0@@ -3167,6 +3167,10 @@ static inline int inline_xattr_size(struct inode *inode)return 0 ; } +/* +* Notice: check inline_data flag without inode page lock is unsafe. +* It could change at any time by f2fs_convert_inline_page(). +*/ static inline int f2fs_has_inline_data (struct inode *inode) {return is_inode_flag_set (inode,FI_INLINE_DATA );Signature · 1 line
2.25.1
Quoted 6 lines · Chao Yu
Quoted 4 lines · Chao Liu
In
f2fs_read_inline_data(), it is confused with checking ofinline_dataflag, as we checked it before calling. So this patch add some comments forf2fs_has_inline_data().
Quoted 6 lines
Quoted 1 line
Signed-off-by Chao LiuIt looks email address is missing, but it shows after I can apply this patch to my local git repo...
Could you please check your email client configuration?
Oh, sorry, this may be caused by my SMTP server, I will try to resend it later via this email address.
Quoted 25 lines
Thanks,
Quoted 22 lines
---
fs/f2fs/f2fs.h| 4 ++++1 file changed, 4 insertions(+)fs/f2fs/f2fs.h +4
-1@@ -3167,6 +3167,10 @@ static inline int inline_xattr_size(struct inode *inode)return 0 ; } +/* +* Notice: check inline_data flag without inode page lock is unsafe. +* It could change at any time by f2fs_convert_inline_page(). +*/ static inline int f2fs_has_inline_data (struct inode *inode) {return is_inode_flag_set (inode,FI_INLINE_DATA ); --2.25.1