diff options
| author | Christoph Hellwig <hch@lst.de> | 2015-01-14 04:42:31 -0500 |
|---|---|---|
| committer | Jens Axboe <axboe@fb.com> | 2015-01-20 16:02:56 -0500 |
| commit | 97b713ba3ebaa6c8d84c2c720f5468a7c6a6eb4e (patch) | |
| tree | a2a430b22f8c220e719114786905b18aa605f9ec /include/linux/backing-dev.h | |
| parent | a7a2c680a2ad81b3181a335ee76e23d5195007ee (diff) | |
fs: kill BDI_CAP_SWAP_BACKED
This bdi flag isn't too useful - we can determine that a vma is backed by
either swap or shmem trivially in the caller.
This also allows removing the backing_dev_info instaces for swap and shmem
in favor of noop_backing_dev_info.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/backing-dev.h')
| -rw-r--r-- | include/linux/backing-dev.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 5da6012b7a14..e936cea856dc 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h | |||
| @@ -238,8 +238,6 @@ int bdi_set_max_ratio(struct backing_dev_info *bdi, unsigned int max_ratio); | |||
| 238 | * BDI_CAP_WRITE_MAP: Can be mapped for writing | 238 | * BDI_CAP_WRITE_MAP: Can be mapped for writing |
| 239 | * BDI_CAP_EXEC_MAP: Can be mapped for execution | 239 | * BDI_CAP_EXEC_MAP: Can be mapped for execution |
| 240 | * | 240 | * |
| 241 | * BDI_CAP_SWAP_BACKED: Count shmem/tmpfs objects as swap-backed. | ||
| 242 | * | ||
| 243 | * BDI_CAP_STRICTLIMIT: Keep number of dirty pages below bdi threshold. | 241 | * BDI_CAP_STRICTLIMIT: Keep number of dirty pages below bdi threshold. |
| 244 | */ | 242 | */ |
| 245 | #define BDI_CAP_NO_ACCT_DIRTY 0x00000001 | 243 | #define BDI_CAP_NO_ACCT_DIRTY 0x00000001 |
| @@ -250,7 +248,6 @@ int bdi_set_max_ratio(struct backing_dev_info *bdi, unsigned int max_ratio); | |||
| 250 | #define BDI_CAP_WRITE_MAP 0x00000020 | 248 | #define BDI_CAP_WRITE_MAP 0x00000020 |
| 251 | #define BDI_CAP_EXEC_MAP 0x00000040 | 249 | #define BDI_CAP_EXEC_MAP 0x00000040 |
| 252 | #define BDI_CAP_NO_ACCT_WB 0x00000080 | 250 | #define BDI_CAP_NO_ACCT_WB 0x00000080 |
| 253 | #define BDI_CAP_SWAP_BACKED 0x00000100 | ||
| 254 | #define BDI_CAP_STABLE_WRITES 0x00000200 | 251 | #define BDI_CAP_STABLE_WRITES 0x00000200 |
| 255 | #define BDI_CAP_STRICTLIMIT 0x00000400 | 252 | #define BDI_CAP_STRICTLIMIT 0x00000400 |
| 256 | 253 | ||
| @@ -329,11 +326,6 @@ static inline bool bdi_cap_account_writeback(struct backing_dev_info *bdi) | |||
| 329 | BDI_CAP_NO_WRITEBACK)); | 326 | BDI_CAP_NO_WRITEBACK)); |
| 330 | } | 327 | } |
| 331 | 328 | ||
| 332 | static inline bool bdi_cap_swap_backed(struct backing_dev_info *bdi) | ||
| 333 | { | ||
| 334 | return bdi->capabilities & BDI_CAP_SWAP_BACKED; | ||
| 335 | } | ||
| 336 | |||
| 337 | static inline bool mapping_cap_writeback_dirty(struct address_space *mapping) | 329 | static inline bool mapping_cap_writeback_dirty(struct address_space *mapping) |
| 338 | { | 330 | { |
| 339 | return bdi_cap_writeback_dirty(mapping->backing_dev_info); | 331 | return bdi_cap_writeback_dirty(mapping->backing_dev_info); |
| @@ -344,11 +336,6 @@ static inline bool mapping_cap_account_dirty(struct address_space *mapping) | |||
| 344 | return bdi_cap_account_dirty(mapping->backing_dev_info); | 336 | return bdi_cap_account_dirty(mapping->backing_dev_info); |
| 345 | } | 337 | } |
| 346 | 338 | ||
| 347 | static inline bool mapping_cap_swap_backed(struct address_space *mapping) | ||
| 348 | { | ||
| 349 | return bdi_cap_swap_backed(mapping->backing_dev_info); | ||
| 350 | } | ||
| 351 | |||
| 352 | static inline int bdi_sched_wait(void *word) | 339 | static inline int bdi_sched_wait(void *word) |
| 353 | { | 340 | { |
| 354 | schedule(); | 341 | schedule(); |
