All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daeho Jeong <daeho.jeong@samsung.com>
To: "tytso@mit.edu" <tytso@mit.edu>
Cc: "linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>
Subject: Question about ext4_free_blocks() Behavior for Per-File Data Journaling Mode
Date: Wed, 14 Oct 2015 04:39:06 +0000 (GMT)	[thread overview]
Message-ID: <260827543.974111444797545780.JavaMail.weblogic@epmlwas03a> (raw)

Hi. I have a question about ext4_free_blocks() behavior for per-file data journaling
mode. AFAIUI, in ext4_free_blocks(), it doesn't invoke ext4_forget() function for
data blocks of a per-file data journaling enabled file, because all the data blocks
of the file are not linked to the block device's address space of the file, but the
address space of the inode of the file, so any data blocks of the file cannot be
found by sb_find_get_block() function. It seems a bug, but I am not sure.
Is this a problem?

I think that, in ext4_free_blocks(), we have to find buffer heads of the file's data
,which are journaled, and transfer the found buffer heads to ext4_forget() in
order to forget and revoke the buffer head related journal record. For that, 
we might need to transfer the logical block numbers of the buffer heads of 
files' data blocks to ext4_free_blocks(). Do you have a better idea to resolve
this problem?

             reply	other threads:[~2015-10-14  4:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14  4:39 Daeho Jeong [this message]
2015-12-08  7:02 Question about ext4_free_blocks() Behavior for Per-File Data Journaling Mode Daeho Jeong

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=260827543.974111444797545780.JavaMail.weblogic@epmlwas03a \
    --to=daeho.jeong@samsung.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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 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.