diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-01-03 09:47:09 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-03 09:47:09 -0500 |
commit | 87d8fe1ee6b8d2f95076142d58c440dba4e7bdc2 (patch) | |
tree | 8c91506978a16c22268b086f693e307de0ca57db /include/linux/fs.h | |
parent | 0087d9fb3f29f59e8d42c8b058376d80e5adde4c (diff) |
add releasepage hooks to block devices which can be used by file systems
Implement blkdev_releasepage() to release the buffer_heads and pages
after we release private data belonging to a mounted filesystem.
Cc: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index f2a3010140e3..0f54ae0f0ccd 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -565,6 +565,7 @@ struct address_space { | |||
565 | struct block_device { | 565 | struct block_device { |
566 | dev_t bd_dev; /* not a kdev_t - it's a search key */ | 566 | dev_t bd_dev; /* not a kdev_t - it's a search key */ |
567 | struct inode * bd_inode; /* will die */ | 567 | struct inode * bd_inode; /* will die */ |
568 | struct super_block * bd_super; | ||
568 | int bd_openers; | 569 | int bd_openers; |
569 | struct mutex bd_mutex; /* open/close mutex */ | 570 | struct mutex bd_mutex; /* open/close mutex */ |
570 | struct semaphore bd_mount_sem; | 571 | struct semaphore bd_mount_sem; |
@@ -1385,6 +1386,7 @@ struct super_operations { | |||
1385 | ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t); | 1386 | ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t); |
1386 | ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t); | 1387 | ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t); |
1387 | #endif | 1388 | #endif |
1389 | int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t); | ||
1388 | }; | 1390 | }; |
1389 | 1391 | ||
1390 | /* | 1392 | /* |