Skip to content

Commit 01141a3

Browse files
Tofeeshr-project
authored andcommitted
Revert "VFS: make vfs_fstat() use f[get|put]_light()"
This reverts commit 9b67aef.
1 parent ece9294 commit 01141a3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/stat.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,12 @@ EXPORT_SYMBOL(vfs_getattr);
5757

5858
int vfs_fstat(unsigned int fd, struct kstat *stat)
5959
{
60-
int fput_needed;
61-
struct file *f = fget_light(fd, &fput_needed);
60+
struct file *f = fget_raw(fd);
6261
int error = -EBADF;
6362

6463
if (f) {
6564
error = vfs_getattr(f->f_path.mnt, f->f_path.dentry, stat);
66-
fput_light(f, fput_needed);
65+
fput(f);
6766
}
6867
return error;
6968
}

0 commit comments

Comments
 (0)