From: Linus Torvalds <torvalds@woody.linux-foundation.org>
Date: Thu, 19 Jul 2007 21:41:33 +0000 (-0700)
Subject: Merge branch 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdb64f93b38a3470fa4db8cd5720b8c731922d1a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git

Merge branch 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6

* 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6:
  [XFS] Fix inode size update before data write in xfs_setattr
  [XFS] Allow punching holes to free space when at ENOSPC
  [XFS] Implement ->page_mkwrite in XFS.
  [FS] Implement block_page_mkwrite.

Manually fix up conflict with Nick's VM fault handling patches in
fs/xfs/linux-2.6/xfs_file.c

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

fdb64f93b38a3470fa4db8cd5720b8c731922d1a
diff --cc fs/xfs/linux-2.6/xfs_file.c
index 2d4be2f247b,b4c936485d1..0d4001eafd1
--- a/fs/xfs/linux-2.6/xfs_file.c
+++ b/fs/xfs/linux-2.6/xfs_file.c
@@@ -464,12 -478,16 +478,14 @@@ const struct file_operations xfs_dir_fi
  };
  
  static struct vm_operations_struct xfs_file_vm_ops = {
 -	.nopage		= filemap_nopage,
 -	.populate	= filemap_populate,
 +	.fault		= filemap_fault,
+ 	.page_mkwrite	= xfs_vm_page_mkwrite,
  };
  
  #ifdef CONFIG_XFS_DMAPI
  static struct vm_operations_struct xfs_dmapi_file_vm_ops = {
 -	.nopage		= xfs_vm_nopage,
 -	.populate	= filemap_populate,
 +	.fault		= xfs_vm_fault,
+ 	.page_mkwrite	= xfs_vm_page_mkwrite,
  #ifdef HAVE_VMOP_MPROTECT
  	.mprotect	= xfs_vm_mprotect,
  #endif