From: Carlos Maiolino Date: Tue, 23 Dec 2014 21:51:38 +0000 (+1100) Subject: xfs: Make xfs_vn_rename compliant with renameat2() syscall X-Git-Tag: fixes-v4.0-rc1~157^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbe1b5ca26396b6c61d711c8ac4de13ebb02e9f6;p=pandora-kernel.git xfs: Make xfs_vn_rename compliant with renameat2() syscall To be able to support RENAME_EXCHANGE flag from renameat2() system call, XFS must have its inode_operations updated, exporting .rename2 method, instead of .rename. This patch just replaces the (now old) .rename method by .rename2, using the same infra-structure, but checking rename flags. Calls to .rename2 using RENAME_EXCHANGE flag, although now handled inside XFS, still return -EINVAL. RENAME_NOREPLACE is handled via VFS and we don't need to care about it inside xfs_vn_rename. Signed-off-by: Carlos Maiolino Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- Reading git-diff-tree failed