]> 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>
Wed, 20 Mar 2013 04:22:49 +0000 (15:22 +1100)
commit5cfb72baede7c501ea6ef05db336ccfd2c65d82e
treefce4aaad5e41470081d82c6a73b603c5f9af7501
parentfc3a050911772e0bcbbc2934b3102948fe6a9f1f
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