diff options
author | Namjae Jeon <linkinjeon@gmail.com> | 2012-12-11 19:00:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 20:22:21 -0500 |
commit | d0e1d66b5aa1ec9f556f951aa9a114cc192cd01c (patch) | |
tree | 3c3d9d8a1575a5fff0233d70951ed7d94c9a1e7e /fs/splice.c | |
parent | b58ed041a360ed051fab17e4d9b0f451c6fedba7 (diff) |
writeback: remove nr_pages_dirtied arg from balance_dirty_pages_ratelimited_nr()
There is no reason to pass the nr_pages_dirtied argument, because
nr_pages_dirtied value from the caller is unused in
balance_dirty_pages_ratelimited_nr().
Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Vivek Trivedi <vtrivedi018@gmail.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/splice.c')
-rw-r--r-- | fs/splice.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/splice.c b/fs/splice.c index 13e5b4776e7a..8890604e3fcd 100644 --- a/fs/splice.c +++ b/fs/splice.c | |||
@@ -1024,17 +1024,14 @@ generic_file_splice_write(struct pipe_inode_info *pipe, struct file *out, | |||
1024 | ret = sd.num_spliced; | 1024 | ret = sd.num_spliced; |
1025 | 1025 | ||
1026 | if (ret > 0) { | 1026 | if (ret > 0) { |
1027 | unsigned long nr_pages; | ||
1028 | int err; | 1027 | int err; |
1029 | 1028 | ||
1030 | nr_pages = (ret + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; | ||
1031 | |||
1032 | err = generic_write_sync(out, *ppos, ret); | 1029 | err = generic_write_sync(out, *ppos, ret); |
1033 | if (err) | 1030 | if (err) |
1034 | ret = err; | 1031 | ret = err; |
1035 | else | 1032 | else |
1036 | *ppos += ret; | 1033 | *ppos += ret; |
1037 | balance_dirty_pages_ratelimited_nr(mapping, nr_pages); | 1034 | balance_dirty_pages_ratelimited(mapping); |
1038 | } | 1035 | } |
1039 | sb_end_write(inode->i_sb); | 1036 | sb_end_write(inode->i_sb); |
1040 | 1037 | ||