]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: make snapshotting pages for stable writes a per-bio operation
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 20 Mar 2013 04:07:23 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:33:51 +0000 (16:33 +1100)
commit5a80ec25636007c454e5eedc9d6d39c9ed9d68be
treee7742644e7f9c4c20ef34b5dcfb9c729a5bd5478
parenta6aa0eb52d3661d7365b96922b7148f84dd0678e
mm: make snapshotting pages for stable writes a per-bio operation

Walking a bio's page mappings has proved problematic, so create a new bio
flag to indicate that a bio's data needs to be snapshotted in order to
guarantee stable pages during writeback.  Next, for the one user
(ext3/jbd) of snapshotting, hook all the places where writes can be
initiated without PG_writeback set, and set BIO_SNAP_STABLE there.
Finally, the MS_SNAP_STABLE mount flag (only used by ext3) is now
superfluous, so get rid of it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/buffer.c
fs/ext3/super.c
fs/jbd/commit.c
include/linux/blk_types.h
include/linux/buffer_head.h
include/uapi/linux/fs.h
mm/bounce.c
mm/page-writeback.c