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>] [day] [month] [year] [list]
Message-ID: <AANLkTi=tEKyo6tJhytCMWPPgXxCDRE10LF2q6W6xwcoM@mail.gmail.com>
Date:	Sat, 4 Dec 2010 18:40:14 +0800
From:	Peng Tao <lkml.bergwolf@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: Question about bdi writeback and __filemap_fdatawrite_range()

Hi,

There are three lists in struct bdi_writeback, b_dirty, b_io and
b_more_io. Once an inode is dirtied, it will be put in b_dirty list.
And once it gets written back, it gets out of the b_io list. And my
question is, if __filemap_fdatawrite_range() kicks off the writeback,
and writes all dirty pages in the inode, how is the inode supposed to
leave the bdi writeback list? I mean, writeback_inodes_wb() will add
the inode to the b_dirty list if no page is written back w/
writeback_single_inode (which is sure, because no dirty page is left).

Is there some piece of code that I am missing?

-- 
Thanks,
-Bergwolf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ