diff options
| author | Jens Axboe <jaxboe@fusionio.com> | 2011-03-10 02:58:35 -0500 |
|---|---|---|
| committer | Jens Axboe <jaxboe@fusionio.com> | 2011-03-10 02:58:35 -0500 |
| commit | 4c63f5646e405b5010cc9499419060bf2e838f5b (patch) | |
| tree | df91ba315032c8ec4aafeb3ab96fdfa7c6c656e1 /fs/nilfs2 | |
| parent | cafb0bfca1a73efd6d8a4a6a6a716e6134b96c24 (diff) | |
| parent | 69d60eb96ae8a73cf9b79cf28051caf973006011 (diff) | |
Merge branch 'for-2.6.39/stack-plug' into for-2.6.39/core
Conflicts:
block/blk-core.c
block/blk-flush.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c
fs/nilfs2/btnode.c
fs/nilfs2/mdt.c
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/nilfs2')
| -rw-r--r-- | fs/nilfs2/btnode.c | 7 | ||||
| -rw-r--r-- | fs/nilfs2/gcinode.c | 1 | ||||
| -rw-r--r-- | fs/nilfs2/inode.c | 1 | ||||
| -rw-r--r-- | fs/nilfs2/mdt.c | 9 | ||||
| -rw-r--r-- | fs/nilfs2/page.c | 5 | ||||
| -rw-r--r-- | fs/nilfs2/page.h | 3 | ||||
| -rw-r--r-- | fs/nilfs2/segbuf.c | 2 |
7 files changed, 7 insertions, 21 deletions
diff --git a/fs/nilfs2/btnode.c b/fs/nilfs2/btnode.c index 85f7baa15f5..609cd223eea 100644 --- a/fs/nilfs2/btnode.c +++ b/fs/nilfs2/btnode.c | |||
| @@ -34,15 +34,10 @@ | |||
| 34 | #include "page.h" | 34 | #include "page.h" |
| 35 | #include "btnode.h" | 35 | #include "btnode.h" |
| 36 | 36 | ||
| 37 | |||
| 38 | static const struct address_space_operations def_btnode_aops = { | ||
| 39 | .sync_page = block_sync_page, | ||
| 40 | }; | ||
| 41 | |||
| 42 | void nilfs_btnode_cache_init(struct address_space *btnc, | 37 | void nilfs_btnode_cache_init(struct address_space *btnc, |
| 43 | struct backing_dev_info *bdi) | 38 | struct backing_dev_info *bdi) |
| 44 | { | 39 | { |
| 45 | nilfs_mapping_init(btnc, bdi, &def_btnode_aops); | 40 | nilfs_mapping_init(btnc, bdi); |
| 46 | } | 41 | } |
| 47 | 42 | ||
| 48 | void nilfs_btnode_cache_clear(struct address_space *btnc) | 43 | void nilfs_btnode_cache_clear(struct address_space *btnc) |
diff --git a/fs/nilfs2/gcinode.c b/fs/nilfs2/gcinode.c index caf9a6a3fb5..1c2a3e23f8b 100644 --- a/fs/nilfs2/gcinode.c +++ b/fs/nilfs2/gcinode.c | |||
| @@ -49,7 +49,6 @@ | |||
| 49 | #include "ifile.h" | 49 | #include "ifile.h" |
| 50 | 50 | ||
| 51 | static const struct address_space_operations def_gcinode_aops = { | 51 | static const struct address_space_operations def_gcinode_aops = { |
| 52 | .sync_page = block_sync_page, | ||
| 53 | }; | 52 | }; |
| 54 | 53 | ||
| 55 | /* | 54 | /* |
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index 2fd440d8d6b..c89d5d1ea7c 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c | |||
| @@ -262,7 +262,6 @@ nilfs_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, | |||
| 262 | const struct address_space_operations nilfs_aops = { | 262 | const struct address_space_operations nilfs_aops = { |
| 263 | .writepage = nilfs_writepage, | 263 | .writepage = nilfs_writepage, |
| 264 | .readpage = nilfs_readpage, | 264 | .readpage = nilfs_readpage, |
| 265 | .sync_page = block_sync_page, | ||
| 266 | .writepages = nilfs_writepages, | 265 | .writepages = nilfs_writepages, |
| 267 | .set_page_dirty = nilfs_set_page_dirty, | 266 | .set_page_dirty = nilfs_set_page_dirty, |
| 268 | .readpages = nilfs_readpages, | 267 | .readpages = nilfs_readpages, |
diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c index a0babd2bff6..a649b05f706 100644 --- a/fs/nilfs2/mdt.c +++ b/fs/nilfs2/mdt.c | |||
| @@ -399,7 +399,6 @@ nilfs_mdt_write_page(struct page *page, struct writeback_control *wbc) | |||
| 399 | 399 | ||
| 400 | static const struct address_space_operations def_mdt_aops = { | 400 | static const struct address_space_operations def_mdt_aops = { |
| 401 | .writepage = nilfs_mdt_write_page, | 401 | .writepage = nilfs_mdt_write_page, |
| 402 | .sync_page = block_sync_page, | ||
| 403 | }; | 402 | }; |
| 404 | 403 | ||
| 405 | static const struct inode_operations def_mdt_iops; | 404 | static const struct inode_operations def_mdt_iops; |
| @@ -438,10 +437,6 @@ void nilfs_mdt_set_entry_size(struct inode *inode, unsigned entry_size, | |||
| 438 | mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); | 437 | mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); |
| 439 | } | 438 | } |
| 440 | 439 | ||
| 441 | static const struct address_space_operations shadow_map_aops = { | ||
| 442 | .sync_page = block_sync_page, | ||
| 443 | }; | ||
| 444 | |||
| 445 | /** | 440 | /** |
| 446 | * nilfs_mdt_setup_shadow_map - setup shadow map and bind it to metadata file | 441 | * nilfs_mdt_setup_shadow_map - setup shadow map and bind it to metadata file |
| 447 | * @inode: inode of the metadata file | 442 | * @inode: inode of the metadata file |
| @@ -455,9 +450,9 @@ int nilfs_mdt_setup_shadow_map(struct inode *inode, | |||
| 455 | 450 | ||
| 456 | INIT_LIST_HEAD(&shadow->frozen_buffers); | 451 | INIT_LIST_HEAD(&shadow->frozen_buffers); |
| 457 | address_space_init_once(&shadow->frozen_data); | 452 | address_space_init_once(&shadow->frozen_data); |
| 458 | nilfs_mapping_init(&shadow->frozen_data, bdi, &shadow_map_aops); | 453 | nilfs_mapping_init(&shadow->frozen_data, bdi); |
| 459 | address_space_init_once(&shadow->frozen_btnodes); | 454 | address_space_init_once(&shadow->frozen_btnodes); |
| 460 | nilfs_mapping_init(&shadow->frozen_btnodes, bdi, &shadow_map_aops); | 455 | nilfs_mapping_init(&shadow->frozen_btnodes, bdi); |
| 461 | mi->mi_shadow = shadow; | 456 | mi->mi_shadow = shadow; |
| 462 | return 0; | 457 | return 0; |
| 463 | } | 458 | } |
diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c index a585b35fd6b..4d2a1ee0eb4 100644 --- a/fs/nilfs2/page.c +++ b/fs/nilfs2/page.c | |||
| @@ -493,15 +493,14 @@ unsigned nilfs_page_count_clean_buffers(struct page *page, | |||
| 493 | } | 493 | } |
| 494 | 494 | ||
| 495 | void nilfs_mapping_init(struct address_space *mapping, | 495 | void nilfs_mapping_init(struct address_space *mapping, |
| 496 | struct backing_dev_info *bdi, | 496 | struct backing_dev_info *bdi) |
| 497 | const struct address_space_operations *aops) | ||
| 498 | { | 497 | { |
| 499 | mapping->host = NULL; | 498 | mapping->host = NULL; |
| 500 | mapping->flags = 0; | 499 | mapping->flags = 0; |
| 501 | mapping_set_gfp_mask(mapping, GFP_NOFS); | 500 | mapping_set_gfp_mask(mapping, GFP_NOFS); |
| 502 | mapping->assoc_mapping = NULL; | 501 | mapping->assoc_mapping = NULL; |
| 503 | mapping->backing_dev_info = bdi; | 502 | mapping->backing_dev_info = bdi; |
| 504 | mapping->a_ops = aops; | 503 | mapping->a_ops = NULL; |
| 505 | } | 504 | } |
| 506 | 505 | ||
| 507 | /* | 506 | /* |
diff --git a/fs/nilfs2/page.h b/fs/nilfs2/page.h index 2a00953ebd5..f06b79ad749 100644 --- a/fs/nilfs2/page.h +++ b/fs/nilfs2/page.h | |||
| @@ -62,8 +62,7 @@ int nilfs_copy_dirty_pages(struct address_space *, struct address_space *); | |||
| 62 | void nilfs_copy_back_pages(struct address_space *, struct address_space *); | 62 | void nilfs_copy_back_pages(struct address_space *, struct address_space *); |
| 63 | void nilfs_clear_dirty_pages(struct address_space *); | 63 | void nilfs_clear_dirty_pages(struct address_space *); |
| 64 | void nilfs_mapping_init(struct address_space *mapping, | 64 | void nilfs_mapping_init(struct address_space *mapping, |
| 65 | struct backing_dev_info *bdi, | 65 | struct backing_dev_info *bdi); |
| 66 | const struct address_space_operations *aops); | ||
| 67 | unsigned nilfs_page_count_clean_buffers(struct page *, unsigned, unsigned); | 66 | unsigned nilfs_page_count_clean_buffers(struct page *, unsigned, unsigned); |
| 68 | unsigned long nilfs_find_uncommitted_extent(struct inode *inode, | 67 | unsigned long nilfs_find_uncommitted_extent(struct inode *inode, |
| 69 | sector_t start_blk, | 68 | sector_t start_blk, |
diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c index 0f83e93935b..2853ff20f85 100644 --- a/fs/nilfs2/segbuf.c +++ b/fs/nilfs2/segbuf.c | |||
| @@ -509,7 +509,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *segbuf, | |||
| 509 | * Last BIO is always sent through the following | 509 | * Last BIO is always sent through the following |
| 510 | * submission. | 510 | * submission. |
| 511 | */ | 511 | */ |
| 512 | rw |= REQ_SYNC | REQ_UNPLUG; | 512 | rw |= REQ_SYNC; |
| 513 | res = nilfs_segbuf_submit_bio(segbuf, &wi, rw); | 513 | res = nilfs_segbuf_submit_bio(segbuf, &wi, rw); |
| 514 | } | 514 | } |
| 515 | 515 | ||
