Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348973
b: refs/heads/master
c: fa9150a
h: refs/heads/master
i:
  348971: b588c49
v: v3
  • Loading branch information
Namjae Jeon authored and Jaegeuk Kim committed Jan 15, 2013
1 parent 58214aa commit 2b1c723
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 163799872b65b0cbf0091d82971233cc3d2425d3
refs/heads/master: fa9150a84ca333f68127097c4fa1eda4b3913a22
11 changes: 10 additions & 1 deletion trunk/fs/f2fs/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,15 @@ static int f2fs_write_data_page(struct page *page,

#define MAX_DESIRED_PAGES_WP 4096

static int __f2fs_writepage(struct page *page, struct writeback_control *wbc,
void *data)
{
struct address_space *mapping = data;
int ret = mapping->a_ops->writepage(page, wbc);
mapping_set_error(mapping, ret);
return ret;
}

static int f2fs_write_data_pages(struct address_space *mapping,
struct writeback_control *wbc)
{
Expand All @@ -563,7 +572,7 @@ static int f2fs_write_data_pages(struct address_space *mapping,

if (!S_ISDIR(inode->i_mode))
mutex_lock(&sbi->writepages);
ret = generic_writepages(mapping, wbc);
ret = write_cache_pages(mapping, wbc, __f2fs_writepage, mapping);
if (!S_ISDIR(inode->i_mode))
mutex_unlock(&sbi->writepages);
f2fs_submit_bio(sbi, DATA, (wbc->sync_mode == WB_SYNC_ALL));
Expand Down

0 comments on commit 2b1c723

Please sign in to comment.