diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-12-02 15:11:32 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-12-05 11:43:59 -0800 |
commit | 204706c7accfabb67b97eef9f9a28361b6201199 (patch) | |
tree | eeb5defa3ec3abd03c4eceb2fde04315a406dc09 /fs/f2fs/file.c | |
parent | 0002b61bdaac732bcff364a18f5bd57c95def0a5 (diff) | |
download | op-kernel-dev-204706c7accfabb67b97eef9f9a28361b6201199.zip op-kernel-dev-204706c7accfabb67b97eef9f9a28361b6201199.tar.gz |
Revert "f2fs: use percpu_counter for # of dirty pages in inode"
This reverts commit 1beba1b3a953107c3ff5448ab4e4297db4619c76.
The perpcu_counter doesn't provide atomicity in single core and consume more
DRAM. That incurs fs_mark test failure due to ENOMEM.
Cc: stable@vger.kernel.org # 4.7+
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 9053a9c..4c87261 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1533,7 +1533,7 @@ static int f2fs_ioc_start_atomic_write(struct file *filp) goto out; f2fs_msg(F2FS_I_SB(inode)->sb, KERN_WARNING, - "Unexpected flush for atomic writes: ino=%lu, npages=%lld", + "Unexpected flush for atomic writes: ino=%lu, npages=%u", inode->i_ino, get_dirty_pages(inode)); ret = filemap_write_and_wait_range(inode->i_mapping, 0, LLONG_MAX); if (ret) |