From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Chao Yu <yuchao0@huawei.com>
Cc: linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, chao@kernel.org
Subject: Re: [PATCH] f2fs: fix to keep backward compatibility of flexible inline xattr feature
Date: Thu, 26 Oct 2017 12:40:55 +0200 [thread overview]
Message-ID: <20171026104055.GA62368@jaegeuk-macbookpro.roam.corp.google.com> (raw)
In-Reply-To: <20171026103728.GA62112@jaegeuk-macbookpro.roam.corp.google.com>
On 10/26, Jaegeuk Kim wrote:
> On 10/26, Jaegeuk Kim wrote:
> > Hi Chao,
> >
> > On 10/26, Jaegeuk Kim wrote:
> > > On 10/26, Chao Yu wrote:
> > > > Hi Jaegeuk,
> > > >
> > > > On 2017/10/26 16:42, Jaegeuk Kim wrote:
> > > > > Hi Chao,
> > > > >
> > > > > It seems this is a critical problem, so let me integrate this patch with your
> > > > > initial patch "f2fs: support flexible inline xattr size".
> > > > > Let me know, if you have any other concern.
> > > >
> > > > Better. ;)
> > > >
> > > > Please add commit message of this patch into initial patch "f2fs: support
> > > > flexible inline xattr size".
> >
> > BTW, I read the patch again, and couldn't catch the problem actually.
> > We didn't assign inline_xattr all the time, instead do if inline_xattr
> > is set. Have you done some tests with this? I'm failing tests with these
> > changes.
>
> Could you take a look at this change?
In addition to this f2fs-tools?
---
include/f2fs_fs.h | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index 09b2a60..66c446c 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -1056,14 +1056,12 @@ static inline int __get_extra_isize(struct f2fs_inode *inode)
extern struct f2fs_configuration c;
static inline int get_inline_xattr_addrs(struct f2fs_inode *inode)
{
- if ((c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) &&
- (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR)))
+ if (c.feature & cpu_to_le32(F2FS_FEATURE_FLEXIBLE_INLINE_XATTR))
return le16_to_cpu(inode->i_inline_xattr_size);
- else if (!(inode->i_inline & F2FS_INLINE_XATTR) &&
- (S_ISREG(inode->i_mode) || S_ISLNK(inode->i_mode)))
- return 0;
- else
+ else if (inode->i_inline & F2FS_INLINE_XATTR)
return DEFAULT_INLINE_XATTR_ADDRS;
+ else
+ return 0;
}
#define get_extra_isize(node) __get_extra_isize(&node->i)
--
2.7.4
next prev parent reply other threads:[~2017-10-26 10:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 10:31 Chao Yu
2017-10-26 8:42 ` Jaegeuk Kim
2017-10-26 8:57 ` Chao Yu
2017-10-26 9:11 ` Jaegeuk Kim
2017-10-26 10:02 ` Jaegeuk Kim
2017-10-26 10:37 ` Jaegeuk Kim
2017-10-26 10:40 ` Jaegeuk Kim [this message]
2017-10-26 11:25 ` Chao Yu
2017-10-26 11:52 ` Jaegeuk Kim
2017-10-26 12:31 ` Chao Yu
2017-10-26 14:05 ` Jaegeuk Kim
2017-10-27 2:13 ` Chao Yu
2017-10-27 10:56 ` Jaegeuk Kim
2017-10-27 11:16 ` Chao Yu
2017-10-27 11:32 ` Jaegeuk Kim
2017-10-27 11:39 ` Chao Yu
2017-10-28 1:56 ` Chao Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171026104055.GA62368@jaegeuk-macbookpro.roam.corp.google.com \
--to=jaegeuk@kernel.org \
--cc=chao@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=yuchao0@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®