Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03fa9e84 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: nfs_updatepage(): don't mark page as dirty if an error occurred

parent b7e24457
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -739,12 +739,13 @@ int nfs_updatepage(struct file *file, struct page *page,
	}

	status = nfs_writepage_setup(ctx, page, offset, count);
	if (status < 0)
		nfs_set_pageerror(page);
	else
		__set_page_dirty_nobuffers(page);

        dprintk("NFS:      nfs_updatepage returns %d (isize %Ld)\n",
			status, (long long)i_size_read(inode));
	if (status < 0)
		nfs_set_pageerror(page);
	return status;
}