All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] f2fs: immutable file can have null address in compressed chunk
@ 2021-05-21 19:02 ` Jaegeuk Kim
  0 siblings, 0 replies; 48+ messages in thread
From: Jaegeuk Kim @ 2021-05-21 19:02 UTC (permalink / raw)
  To: linux-kernel, linux-f2fs-devel; +Cc: Jaegeuk Kim

If we released compressed blocks having an immutable bit, we can see less
number of compressed block addresses. Let's fix wrong BUG_ON.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 fs/f2fs/compress.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index d4f7371fb0d8..1189740aa141 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -927,7 +927,8 @@ static int __f2fs_cluster_blocks(struct inode *inode,
 			}
 		}
 
-		f2fs_bug_on(F2FS_I_SB(inode), !compr && ret != cluster_size);
+		f2fs_bug_on(F2FS_I_SB(inode),
+			!compr && ret != cluster_size && !IS_IMMUTABLE(inode));
 	}
 fail:
 	f2fs_put_dnode(&dn);
-- 
2.31.1.818.g46aad6cb9e-goog


^ permalink raw reply related	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2021-06-04 23:48 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 19:02 [PATCH 1/2] f2fs: immutable file can have null address in compressed chunk Jaegeuk Kim
2021-05-21 19:02 ` [f2fs-dev] " Jaegeuk Kim
2021-05-21 19:02 ` [PATCH 2/2] f2fs: support RO feature Jaegeuk Kim
2021-05-21 19:02   ` [f2fs-dev] " Jaegeuk Kim
2021-05-24 11:53   ` Chao Yu
2021-05-24 11:53     ` Chao Yu
2021-05-24 17:07     ` Jaegeuk Kim
2021-05-24 17:07       ` Jaegeuk Kim
2021-05-25  1:15       ` Chao Yu
2021-05-25  1:15         ` Chao Yu
2021-05-25  1:45         ` Jaegeuk Kim
2021-05-25  1:45           ` Jaegeuk Kim
2021-05-26  9:42   ` Chao Yu
2021-05-26  9:42     ` Chao Yu
2021-05-26 13:58     ` Jaegeuk Kim
2021-05-26 13:58       ` Jaegeuk Kim
2021-05-26 15:06       ` Chao Yu
2021-05-26 15:06         ` Chao Yu
2021-05-26 15:45         ` Jaegeuk Kim
2021-05-26 15:45           ` Jaegeuk Kim
2021-05-26 13:59   ` [PATCH 2/2 v2] " Jaegeuk Kim
2021-05-26 13:59     ` [f2fs-dev] " Jaegeuk Kim
2021-05-26 14:06     ` Jaegeuk Kim
2021-05-26 14:06       ` Jaegeuk Kim
2021-05-26 14:43     ` [f2fs-dev] [PATCH 2/2 v3] " Jaegeuk Kim
2021-05-26 14:43       ` Jaegeuk Kim
2021-05-27  1:19       ` Chao Yu
2021-05-27  1:19         ` Chao Yu
2021-05-27  1:36         ` Jaegeuk Kim
2021-05-27  1:36           ` Jaegeuk Kim
2021-05-28  2:07           ` Chao Yu
2021-05-28  2:07             ` Chao Yu
2021-06-02 15:16       ` Chao Yu
2021-06-02 15:16         ` Chao Yu
2021-06-02 19:02       ` [f2fs-dev] [PATCH 2/2 v4] " Jaegeuk Kim
2021-06-02 19:02         ` Jaegeuk Kim
2021-06-03 15:52         ` Chao Yu
2021-06-03 15:52           ` Chao Yu
2021-06-03 16:08         ` [f2fs-dev] [PATCH 2/2 v5] " Jaegeuk Kim
2021-06-03 16:08           ` Jaegeuk Kim
2021-06-04 23:47           ` Chao Yu
2021-06-04 23:47             ` Chao Yu
2021-05-26 15:32     ` [PATCH 2/2 v2] " kernel test robot
2021-05-26 16:40     ` kernel test robot
2021-05-26  9:08 ` [f2fs-dev] [PATCH 1/2] f2fs: immutable file can have null address in compressed chunk Chao Yu
2021-05-26  9:08   ` Chao Yu
2021-05-26 14:02   ` Jaegeuk Kim
2021-05-26 14:02     ` Jaegeuk Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.