X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fstat.c;h=68510068a6414e46f510033f9dc1477a4704672b;hb=6ec129c3a2f8b38bc37e42348470ccfcb7460146;hp=a0ebfc7f8a6446e361a0146fc39dbbc5883c058f;hpb=bef986502fa398b1785a3979b1aa17cd902d3527;p=linux-2.6 diff --git a/fs/stat.c b/fs/stat.c index a0ebfc7f8a..68510068a6 100644 --- a/fs/stat.c +++ b/fs/stat.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -102,7 +101,7 @@ int vfs_fstat(unsigned int fd, struct kstat *stat) int error = -EBADF; if (f) { - error = vfs_getattr(f->f_vfsmnt, f->f_dentry, stat); + error = vfs_getattr(f->f_path.mnt, f->f_path.dentry, stat); fput(f); } return error;