Merge branch 'rebased-statx' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux] / drivers / block / loop.c
index 0712365..0ecb646 100644 (file)
@@ -1176,7 +1176,8 @@ loop_get_status(struct loop_device *lo, struct loop_info64 *info)
 
        if (lo->lo_state != Lo_bound)
                return -ENXIO;
-       error = vfs_getattr(&file->f_path, &stat);
+       error = vfs_getattr(&file->f_path, &stat,
+                           STATX_INO, AT_STATX_SYNC_AS_STAT);
        if (error)
                return error;
        memset(info, 0, sizeof(*info));