X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Ffile_table.c;h=d17fd691b8325c8dab7c4ab086bfb1900687b1e0;hb=5351fb106a84d6ac584c2501e3b335093d38a58c;hp=24f25a057d9c131f94f1f2eb2400739958d09a95;hpb=609d7fa9565c754428d2520cac2accc9052e1245;p=powerpc.git diff --git a/fs/file_table.c b/fs/file_table.c index 24f25a057d..d17fd691b8 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -152,8 +151,8 @@ EXPORT_SYMBOL(fput); */ void fastcall __fput(struct file *file) { - struct dentry *dentry = file->f_dentry; - struct vfsmount *mnt = file->f_vfsmnt; + struct dentry *dentry = file->f_path.dentry; + struct vfsmount *mnt = file->f_path.mnt; struct inode *inode = dentry->d_inode; might_sleep(); @@ -176,8 +175,8 @@ void fastcall __fput(struct file *file) put_write_access(inode); put_pid(file->f_owner.pid); file_kill(file); - file->f_dentry = NULL; - file->f_vfsmnt = NULL; + file->f_path.dentry = NULL; + file->f_path.mnt = NULL; file_free(file); dput(dentry); mntput(mnt); @@ -271,7 +270,7 @@ int fs_may_remount_ro(struct super_block *sb) file_list_lock(); list_for_each(p, &sb->s_files) { struct file *file = list_entry(p, struct file, f_u.fu_list); - struct inode *inode = file->f_dentry->d_inode; + struct inode *inode = file->f_path.dentry->d_inode; /* File with pending delete? */ if (inode->i_nlink == 0)