Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1355580 > unrolled thread
| Started by | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| First post | 2016-03-11 04:40 +0100 |
| Last post | 2016-03-11 04:40 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 7/8] f2fs: remove unnecessary inline checking for f2fs_convert_inline_inode Shawn Lin <shawn.lin@rock-chips.com> - 2016-03-11 04:40 +0100
| From | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| Date | 2016-03-11 04:40 +0100 |
| Subject | [PATCH 7/8] f2fs: remove unnecessary inline checking for f2fs_convert_inline_inode |
| Message-ID | <rbm5I-8y-11@gated-at.bofh.it> |
If failing to check inline data flag for f2fs_convert_inline_inode, it will return 0. So we don't need to check it twice before we are going to do f2fs_convert_inline_page. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> --- fs/f2fs/inline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 394feee..76e096a 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -173,8 +173,7 @@ int f2fs_convert_inline_inode(struct inode *inode) set_new_dnode(&dn, inode, ipage, ipage, 0); - if (f2fs_has_inline_data(inode)) - err = f2fs_convert_inline_page(&dn, page); + err = f2fs_convert_inline_page(&dn, page); f2fs_put_dnode(&dn); out: -- 2.3.7
Back to top | Article view | linux.kernel
csiph-web