summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorCarlos Maiolino <cmaiolino@redhat.com>2014-12-24 08:51:38 +1100
committerDave Chinner <david@fromorbit.com>2014-12-24 08:51:38 +1100
commitdbe1b5ca26396b6c61d711c8ac4de13ebb02e9f6 (patch)
tree9c7401ae49d0642c2c36d8a7a816709bcca92fe4 /fs/xfs/xfs_inode.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
downloadop-kernel-dev-dbe1b5ca26396b6c61d711c8ac4de13ebb02e9f6.zip
op-kernel-dev-dbe1b5ca26396b6c61d711c8ac4de13ebb02e9f6.tar.gz
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 <cmaiolino@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud