]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/md/md.c
Merge tag 'md/4.2-fixes' of git://neil.brown.name/md
[mirror_ubuntu-zesty-kernel.git] / drivers / md / md.c
index 0fcf6de2415ad1a2e510049c82955ba171228d91..0c2a4e8b873c659dbc260b2aa5484c7a5e87b176 100644 (file)
@@ -5768,7 +5768,7 @@ static int get_bitmap_file(struct mddev *mddev, void __user * arg)
        /* bitmap disabled, zero the first byte and copy out */
        if (!mddev->bitmap_info.file)
                file->pathname[0] = '\0';
-       else if ((ptr = d_path(&mddev->bitmap_info.file->f_path,
+       else if ((ptr = file_path(mddev->bitmap_info.file,
                               file->pathname, sizeof(file->pathname))),
                 IS_ERR(ptr))
                err = PTR_ERR(ptr);