lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130604052203.GA29587@thunk.org>
Date:	Tue, 4 Jun 2013 01:22:03 -0400
From:	Theodore Ts'o <tytso@....edu>
To:	宋柏翰 <solarispika@...il.com>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: Question on delalloc

On Tue, Jun 04, 2013 at 03:00:29AM +0800, 宋柏翰 wrote:
> Also after I traced into filemap_write_and_wait_range, I found it
> eventually calls ext4_writepage to do the most part of work, which in
> its comment says "We don't do any block allocation in this function."
> 
> So, can anyone kindly shed any light on my question, or point out my mistakes?

There are three possible address_space_operations structures that can
be used for ext4 files.  They are ext4_aops, ext4_journalled_aops, and
ext4_da_aops.  It is the last one which is used for delayed allocation
files, and in that case filemap_write_and_wait_range will use
ext4_da_writepages().

These days, if there is an writepages function, the writepage function
is not used at all.  It used to be used for direct reclaim, but that's
been replaced by I/O-less reclaim.

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ