Widen amount-to-flush arguments of FileWriteback and callers.
Tom Lane <tgl@sss.pgh.pa.us>
Widen amount-to-flush arguments of FileWriteback and callers. It's silly to define these counts as narrower than they might someday need to be. Also, I believe that the BLCKSZ * nflush calculation in mdwriteback was capable of overflowing an int.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/file/fd.c | modified | +7 −7 |
| src/backend/storage/smgr/md.c | modified | +5 −4 |
| src/backend/storage/smgr/smgr.c | modified | +2 −2 |
| src/include/storage/fd.h | modified | +1 −1 |
| src/include/storage/smgr.h | modified | +2 −2 |