linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: A question about EXT4_INODE_JOURNAL_DATA flag with delalloc
@ 2015-08-12  6:07 Daeho Jeong
  2015-08-12 15:31 ` Theodore Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Daeho Jeong @ 2015-08-12  6:07 UTC (permalink / raw)
  To: Theodore Ts'o
  Cc: 정대호, linux-ext4@vger.kernel.org,
	daehojng@gmail.com

Ted, thanks for your response.

I just have tested the below test by temporally enabling per-file data journalling with delalloc
and it didn't cause kernel oops any more. I will check further whether per-file data journalling
while allowing the rest of the file system to be using delalloc will cause another type of problem
or not.

 dd if=/dev/zero of=/mnt/test1/file bs=1M count=4
 chattr +j /mnt/test1/file
 dd if=/dev/zero of=/mnt/test1/file bs=1M count=4 conv=notrunc
 chattr -j /mnt/test1/file

Best Regards,

^ permalink raw reply	[flat|nested] 4+ messages in thread
* A question about EXT4_INODE_JOURNAL_DATA flag with delalloc
@ 2015-08-11  3:12 Daeho Jeong
  2015-08-11 20:00 ` Theodore Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Daeho Jeong @ 2015-08-11  3:12 UTC (permalink / raw)
  To: linux-ext4@vger.kernel.org; +Cc: daehojng@gmail.com, 정대호

Hi, I am seeing in the ext4_change_inode_flag() function and found a patch to allocate
physical blocks for delalloc blocks in that function.
(=> http://repo.or.cz/w/ext4-patch-queue.git/blob/20f7782b1f50eb1d5cba5e085d01fbce89fce881:/allocate-delalloc-blocks-before-changing-journal-mode)

I think this is an idea to resolve kernel OOPS concerned with enabling/disabling
data journaling of a file in delayed allocation mode. Actually, I want to utilize per file
data journaling with delayed allocation, so this patch seemed to be very helpful for me.

But, after 1 month from when the patch was applied, another patch was submitted
and EXT4_INODE_JOURNAL_DATA flag with delalloc was ignored.
(=> http://repo.or.cz/w/ext4-patch-queue.git/blob/17f3a9c17473d0b5925118a75ba7363c79e3fdc3:/ignore-JOURNAL_DATA-flag-with-delalloc)

I don't understand the reason of that EXT4_INODE_JOURNAL_DATA flag with delalloc was
ignored because I think the previous patch can handle the problem which the above URL describes.

Am I missing something and could you share your idea about this? :-)

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

end of thread, other threads:[~2015-08-12 15:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12  6:07 A question about EXT4_INODE_JOURNAL_DATA flag with delalloc Daeho Jeong
2015-08-12 15:31 ` Theodore Ts'o
  -- strict thread matches above, loose matches on Subject: below --
2015-08-11  3:12 Daeho Jeong
2015-08-11 20:00 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).