Commit 40543f62 authored by Vishal Verma's avatar Vishal Verma

dax: fix a comment in dax_zero_page_range and dax_truncate_page

The distinction between PAGE_SIZE and PAGE_CACHE_SIZE was removed in

09cbfeaf mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release}
macros

The comments for the above functions described a distinction between
those, that is now redundant, so remove those paragraphs

Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarVishal Verma <vishal.l.verma@intel.com>
parent 4b0228fa
...@@ -995,12 +995,6 @@ EXPORT_SYMBOL_GPL(__dax_zero_page_range); ...@@ -995,12 +995,6 @@ EXPORT_SYMBOL_GPL(__dax_zero_page_range);
* page in a DAX file. This is intended for hole-punch operations. If * page in a DAX file. This is intended for hole-punch operations. If
* you are truncating a file, the helper function dax_truncate_page() may be * you are truncating a file, the helper function dax_truncate_page() may be
* more convenient. * more convenient.
*
* We work in terms of PAGE_SIZE here for commonality with
* block_truncate_page(), but we could go down to PAGE_SIZE if the filesystem
* took care of disposing of the unnecessary blocks. Even if the filesystem
* block size is smaller than PAGE_SIZE, we have to zero the rest of the page
* since the file might be mmapped.
*/ */
int dax_zero_page_range(struct inode *inode, loff_t from, unsigned length, int dax_zero_page_range(struct inode *inode, loff_t from, unsigned length,
get_block_t get_block) get_block_t get_block)
...@@ -1035,12 +1029,6 @@ EXPORT_SYMBOL_GPL(dax_zero_page_range); ...@@ -1035,12 +1029,6 @@ EXPORT_SYMBOL_GPL(dax_zero_page_range);
* *
* Similar to block_truncate_page(), this function can be called by a * Similar to block_truncate_page(), this function can be called by a
* filesystem when it is truncating a DAX file to handle the partial page. * filesystem when it is truncating a DAX file to handle the partial page.
*
* We work in terms of PAGE_SIZE here for commonality with
* block_truncate_page(), but we could go down to PAGE_SIZE if the filesystem
* took care of disposing of the unnecessary blocks. Even if the filesystem
* block size is smaller than PAGE_SIZE, we have to zero the rest of the page
* since the file might be mmapped.
*/ */
int dax_truncate_page(struct inode *inode, loff_t from, get_block_t get_block) int dax_truncate_page(struct inode *inode, loff_t from, get_block_t get_block)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment