file.c (651a88798412e216f337d70181127e847f00a4b7) file.c (b7446e7cf15f0926866c8e5de90ab278998bf8c8)
1/*
2 * file.c
3 *
4 * PURPOSE
5 * File handling routines for the OSTA-UDF(tm) filesystem.
6 *
7 * COPYRIGHT
8 * This file is distributed under the terms of the GNU General Public

--- 80 unchanged lines hidden (view full) ---

89 struct address_space *mapping, loff_t pos,
90 unsigned len, unsigned flags, struct page **pagep,
91 void **fsdata)
92{
93 struct page *page;
94
95 if (WARN_ON_ONCE(pos >= PAGE_SIZE))
96 return -EIO;
1/*
2 * file.c
3 *
4 * PURPOSE
5 * File handling routines for the OSTA-UDF(tm) filesystem.
6 *
7 * COPYRIGHT
8 * This file is distributed under the terms of the GNU General Public

--- 80 unchanged lines hidden (view full) ---

89 struct address_space *mapping, loff_t pos,
90 unsigned len, unsigned flags, struct page **pagep,
91 void **fsdata)
92{
93 struct page *page;
94
95 if (WARN_ON_ONCE(pos >= PAGE_SIZE))
96 return -EIO;
97 page = grab_cache_page_write_begin(mapping, 0, flags);
97 page = grab_cache_page_write_begin(mapping, 0);
98 if (!page)
99 return -ENOMEM;
100 *pagep = page;
101
102 if (!PageUptodate(page))
103 __udf_adinicb_readpage(page);
104 return 0;
105}

--- 190 unchanged lines hidden ---
98 if (!page)
99 return -ENOMEM;
100 *pagep = page;
101
102 if (!PageUptodate(page))
103 __udf_adinicb_readpage(page);
104 return 0;
105}

--- 190 unchanged lines hidden ---