Merge remote-tracking branch 'ovl/rename2' into for-linus

This commit is contained in:
Al Viro
2016-10-10 23:02:51 -04:00
483 changed files with 4393 additions and 2750 deletions

View File

@@ -371,12 +371,16 @@ static bool omfs_fill_chain(struct inode *dir, struct dir_context *ctx,
}
static int omfs_rename(struct inode *old_dir, struct dentry *old_dentry,
struct inode *new_dir, struct dentry *new_dentry)
struct inode *new_dir, struct dentry *new_dentry,
unsigned int flags)
{
struct inode *new_inode = d_inode(new_dentry);
struct inode *old_inode = d_inode(old_dentry);
int err;
if (flags & ~RENAME_NOREPLACE)
return -EINVAL;
if (new_inode) {
/* overwriting existing file/dir */
err = omfs_remove(new_dir, new_dentry);