We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1043a3 commit 7f296b2Copy full SHA for 7f296b2
fs/nfs/internal.h
@@ -797,25 +797,6 @@ static inline void nfs_folio_mark_unstable(struct folio *folio,
797
}
798
799
800
-/*
801
- * Determine the number of bytes of data the page contains
802
- */
803
-static inline
804
-unsigned int nfs_page_length(struct page *page)
805
-{
806
- loff_t i_size = i_size_read(page->mapping->host);
807
-
808
- if (i_size > 0) {
809
- pgoff_t index = page_index(page);
810
- pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT;
811
- if (index < end_index)
812
- return PAGE_SIZE;
813
- if (index == end_index)
814
- return ((i_size - 1) & ~PAGE_MASK) + 1;
815
- }
816
- return 0;
817
-}
818
819
/*
820
* Determine the number of bytes of data the page contains
821
*/
0 commit comments