diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-09-15 15:10:20 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-16 15:16:18 +0200 |
commit | 1fe06ad89255c211fe100d7f690d10b161398df8 (patch) | |
tree | 826d32bf081a6729aeaa08fe42422e49a9b86f6f /mm | |
parent | 2c96ce9f2084c1e04d02883e622f74a537a63aea (diff) | |
download | op-kernel-dev-1fe06ad89255c211fe100d7f690d10b161398df8.zip op-kernel-dev-1fe06ad89255c211fe100d7f690d10b161398df8.tar.gz |
writeback: get rid of wbc->for_writepages
It's only set, it's never checked. Kill it.
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index dd73d29..abc648f 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -1020,12 +1020,10 @@ int do_writepages(struct address_space *mapping, struct writeback_control *wbc) if (wbc->nr_to_write <= 0) return 0; - wbc->for_writepages = 1; if (mapping->a_ops->writepages) ret = mapping->a_ops->writepages(mapping, wbc); else ret = generic_writepages(mapping, wbc); - wbc->for_writepages = 0; return ret; } |