Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

f2fs: support swapfile

This patch adds f2fs_bmap operation to the data address space.
This enables f2fs to support swapfile.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>

+6
+6
fs/f2fs/data.c
··· 698 698 return 0; 699 699 } 700 700 701 + static sector_t f2fs_bmap(struct address_space *mapping, sector_t block) 702 + { 703 + return generic_block_bmap(mapping, block, get_data_block_ro); 704 + } 705 + 701 706 const struct address_space_operations f2fs_dblock_aops = { 702 707 .readpage = f2fs_read_data_page, 703 708 .readpages = f2fs_read_data_pages, ··· 714 709 .invalidatepage = f2fs_invalidate_data_page, 715 710 .releasepage = f2fs_release_data_page, 716 711 .direct_IO = f2fs_direct_IO, 712 + .bmap = f2fs_bmap, 717 713 };