From 0ca452dea154eec8438c615bdc4ef2da1763864f Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Thu, 17 Jan 2013 20:30:23 +0900 Subject: [PATCH] --- yaml --- r: 348978 b: refs/heads/master c: c01e54b770e69c65525295eb2668be3dc0822406 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/f2fs/data.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ff9ae2f2dc1e..4062ec5b6754 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 692bb55d1ab5b278181ff2e65f09eb0be6d50669 +refs/heads/master: c01e54b770e69c65525295eb2668be3dc0822406 diff --git a/trunk/fs/f2fs/data.c b/trunk/fs/f2fs/data.c index b1347fc6d688..7bd22a201125 100644 --- a/trunk/fs/f2fs/data.c +++ b/trunk/fs/f2fs/data.c @@ -698,6 +698,11 @@ static int f2fs_set_data_page_dirty(struct page *page) return 0; } +static sector_t f2fs_bmap(struct address_space *mapping, sector_t block) +{ + return generic_block_bmap(mapping, block, get_data_block_ro); +} + const struct address_space_operations f2fs_dblock_aops = { .readpage = f2fs_read_data_page, .readpages = f2fs_read_data_pages, @@ -709,4 +714,5 @@ const struct address_space_operations f2fs_dblock_aops = { .invalidatepage = f2fs_invalidate_data_page, .releasepage = f2fs_release_data_page, .direct_IO = f2fs_direct_IO, + .bmap = f2fs_bmap, };