X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fstat.c;h=68510068a6414e46f510033f9dc1477a4704672b;hb=9bfb52ad716e74785b2402b7ea17f30e0344b8e8;hp=a0ebfc7f8a6446e361a0146fc39dbbc5883c058f;hpb=2685b267bce34c9b66626cb11664509c32a761a5;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;