Commit b7446e7c authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle)
Browse files

fs: Remove aop flags parameter from grab_cache_page_write_begin()



There are no more aop flags left, so remove the parameter.

Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent be3bbbc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ static int affs_write_begin_ofs(struct file *file, struct address_space *mapping
	}

	index = pos >> PAGE_SHIFT;
	page = grab_cache_page_write_begin(mapping, index, flags);
	page = grab_cache_page_write_begin(mapping, index);
	if (!page)
		return -ENOMEM;
	*pagep = page;
+2 −2
Original line number Diff line number Diff line
@@ -2110,7 +2110,7 @@ int block_write_begin(struct address_space *mapping, loff_t pos, unsigned len,
	struct page *page;
	int status;

	page = grab_cache_page_write_begin(mapping, index, 0);
	page = grab_cache_page_write_begin(mapping, index);
	if (!page)
		return -ENOMEM;

@@ -2591,7 +2591,7 @@ int nobh_write_begin(struct address_space *mapping,
	from = pos & (PAGE_SIZE - 1);
	to = from + len;

	page = grab_cache_page_write_begin(mapping, index, flags);
	page = grab_cache_page_write_begin(mapping, index);
	if (!page)
		return -ENOMEM;
	*pagep = page;
+1 −1
Original line number Diff line number Diff line
@@ -4695,7 +4695,7 @@ static int cifs_write_begin(struct file *file, struct address_space *mapping,
	cifs_dbg(FYI, "write_begin from %lld len %d\n", (long long)pos, len);

start:
	page = grab_cache_page_write_begin(mapping, index, flags);
	page = grab_cache_page_write_begin(mapping, index);
	if (!page) {
		rc = -ENOMEM;
		goto out;
+1 −1
Original line number Diff line number Diff line
@@ -272,7 +272,7 @@ static int ecryptfs_write_begin(struct file *file,
	loff_t prev_page_end_size;
	int rc = 0;

	page = grab_cache_page_write_begin(mapping, index, flags);
	page = grab_cache_page_write_begin(mapping, index);
	if (!page)
		return -ENOMEM;
	*pagep = page;
+4 −4
Original line number Diff line number Diff line
@@ -563,7 +563,7 @@ static int ext4_convert_inline_data_to_extent(struct address_space *mapping,
	/* We cannot recurse into the filesystem as the transaction is already
	 * started */
	flags = memalloc_nofs_save();
	page = grab_cache_page_write_begin(mapping, 0, 0);
	page = grab_cache_page_write_begin(mapping, 0);
	memalloc_nofs_restore(flags);
	if (!page) {
		ret = -ENOMEM;
@@ -692,7 +692,7 @@ int ext4_try_to_write_inline_data(struct address_space *mapping,
		goto out;

	flags = memalloc_nofs_save();
	page = grab_cache_page_write_begin(mapping, 0, 0);
	page = grab_cache_page_write_begin(mapping, 0);
	memalloc_nofs_restore(flags);
	if (!page) {
		ret = -ENOMEM;
@@ -852,7 +852,7 @@ static int ext4_da_convert_inline_data_to_extent(struct address_space *mapping,
	int ret = 0, inline_size;
	struct page *page;

	page = grab_cache_page_write_begin(mapping, 0, 0);
	page = grab_cache_page_write_begin(mapping, 0);
	if (!page)
		return -ENOMEM;

@@ -946,7 +946,7 @@ int ext4_da_write_inline_data_begin(struct address_space *mapping,
	 * is already started.
	 */
	flags = memalloc_nofs_save();
	page = grab_cache_page_write_begin(mapping, 0, 0);
	page = grab_cache_page_write_begin(mapping, 0);
	memalloc_nofs_restore(flags);
	if (!page) {
		ret = -ENOMEM;
Loading