X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Fwriteback.h;h=beaef5c7a0eacaadfb0d2f590dbf75c498f81eb0;hb=f6b83f070e9b7ad9075f7cc5646260e56c7d0219;hp=343d883d69c5d56314b7b15280513376f1b6d1bd;hpb=5ce7852cdf07ab903fb1c72d0915ac492c6e07c7;p=powerpc.git diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 343d883d69..beaef5c7a0 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -53,18 +53,13 @@ struct writeback_control { loff_t start; loff_t end; - unsigned nonblocking:1; /* Don't get stuck on request queues */ - unsigned encountered_congestion:1; /* An output: a queue is full */ - unsigned for_kupdate:1; /* A kupdate writeback */ - unsigned for_reclaim:1; /* Invoked from the page allocator */ + unsigned nonblocking:1; /* Don't get stuck on request queues */ + unsigned encountered_congestion:1; /* An output: a queue is full */ + unsigned for_kupdate:1; /* A kupdate writeback */ + unsigned for_reclaim:1; /* Invoked from the page allocator */ + unsigned for_writepages:1; /* This is a writepages() call */ }; -/* - * ->writepage() return values (make these much larger than a pagesize, in - * case some fs is returning number-of-bytes-written from writepage) - */ -#define WRITEPAGE_ACTIVATE 0x80000 /* IO was not started: activate page */ - /* * fs/fs-writeback.c */ @@ -108,7 +103,9 @@ void balance_dirty_pages_ratelimited(struct address_space *mapping); int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0); int do_writepages(struct address_space *mapping, struct writeback_control *wbc); int sync_page_range(struct inode *inode, struct address_space *mapping, - loff_t pos, size_t count); + loff_t pos, loff_t count); +int sync_page_range_nolock(struct inode *inode, struct address_space *mapping, + loff_t pos, loff_t count); /* pdflush.c */ extern int nr_pdflush_threads; /* Global so it can be exported to sysctl