diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-23 23:38:15 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-29 00:41:32 +0200 |
commit | 05ca3632e5a73b493b27ec3e2a337885563abff0 (patch) | |
tree | cfec80454ff027e6fa58ab688b7f7b9c3ba385b6 /fs/f2fs/inline.c | |
parent | f2fs: add f2fs_may_inline_{data, dentry} (diff) | |
download | linux-05ca3632e5a73b493b27ec3e2a337885563abff0.tar.xz linux-05ca3632e5a73b493b27ec3e2a337885563abff0.zip |
f2fs: add sbi and page pointer in f2fs_io_info
This patch adds f2fs_sb_info and page pointers in f2fs_io_info structure.
With this change, we can reduce a lot of parameters for IO functions.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inline.c')
-rw-r--r-- | fs/f2fs/inline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 99d514815af7..d9b3033bf6fd 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -106,8 +106,10 @@ int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) { void *src_addr, *dst_addr; struct f2fs_io_info fio = { + .sbi = F2FS_I_SB(dn->inode), .type = DATA, .rw = WRITE_SYNC | REQ_PRIO, + .page = page, }; int dirty, err; @@ -141,7 +143,7 @@ no_update: /* write data page to try to make data consistent */ set_page_writeback(page); fio.blk_addr = dn->data_blkaddr; - write_data_page(page, dn, &fio); + write_data_page(dn, &fio); set_data_blkaddr(dn); f2fs_update_extent_cache(dn); f2fs_wait_on_page_writeback(page, DATA); |