Merge remote-tracking branch 'hwmon-staging/hwmon-next'
[deliverable/linux.git] / fs / hfsplus / dir.c
index 42e128661dc15e4a2593f8cf321fd71f997188bc..063577958126fdeacf4eff86b4a10fea40c55401 100644 (file)
@@ -530,10 +530,14 @@ static int hfsplus_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
 }
 
 static int hfsplus_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)
 {
        int res;
 
+       if (flags & ~RENAME_NOREPLACE)
+               return -EINVAL;
+
        /* Unlink destination if it already exists */
        if (d_really_is_positive(new_dentry)) {
                if (d_is_dir(new_dentry))
This page took 0.02506 seconds and 5 git commands to generate.