fs: port inode_owner_or_capable() to mnt_idmap
[sfrench/cifs-2.6.git] / fs / fcntl.c
index 146c9ab0cd4b7c81e6f661205e79ae562da11cee..4c043b1b9b9830b07c3c7c407eb95c0a019234fc 100644 (file)
@@ -47,7 +47,7 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
 
        /* O_NOATIME can only be set by the owner or superuser */
        if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME))
-               if (!inode_owner_or_capable(file_mnt_user_ns(filp), inode))
+               if (!inode_owner_or_capable(file_mnt_idmap(filp), inode))
                        return -EPERM;
 
        /* required for strict SunOS emulation */