aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 45f2cabb8c75..adce6e1d70c2 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -269,6 +269,7 @@ extern int dir_notify_enable;
269#include <linux/types.h> 269#include <linux/types.h>
270#include <linux/kdev_t.h> 270#include <linux/kdev_t.h>
271#include <linux/dcache.h> 271#include <linux/dcache.h>
272#include <linux/namei.h>
272#include <linux/stat.h> 273#include <linux/stat.h>
273#include <linux/cache.h> 274#include <linux/cache.h>
274#include <linux/kobject.h> 275#include <linux/kobject.h>
@@ -711,8 +712,9 @@ struct file {
711 struct list_head fu_list; 712 struct list_head fu_list;
712 struct rcu_head fu_rcuhead; 713 struct rcu_head fu_rcuhead;
713 } f_u; 714 } f_u;
714 struct dentry *f_dentry; 715 struct path f_path;
715 struct vfsmount *f_vfsmnt; 716#define f_dentry f_path.dentry
717#define f_vfsmnt f_path.mnt
716 const struct file_operations *f_op; 718 const struct file_operations *f_op;
717 atomic_t f_count; 719 atomic_t f_count;
718 unsigned int f_flags; 720 unsigned int f_flags;
@@ -1224,7 +1226,7 @@ extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry);
1224static inline void file_accessed(struct file *file) 1226static inline void file_accessed(struct file *file)
1225{ 1227{
1226 if (!(file->f_flags & O_NOATIME)) 1228 if (!(file->f_flags & O_NOATIME))
1227 touch_atime(file->f_vfsmnt, file->f_dentry); 1229 touch_atime(file->f_path.mnt, file->f_path.dentry);
1228} 1230}
1229 1231
1230int sync_inode(struct inode *inode, struct writeback_control *wbc); 1232int sync_inode(struct inode *inode, struct writeback_control *wbc);
@@ -1615,7 +1617,7 @@ static inline void put_write_access(struct inode * inode)
1615static inline void allow_write_access(struct file *file) 1617static inline void allow_write_access(struct file *file)
1616{ 1618{
1617 if (file) 1619 if (file)
1618 atomic_inc(&file->f_dentry->d_inode->i_writecount); 1620 atomic_inc(&file->f_path.dentry->d_inode->i_writecount);
1619} 1621}
1620extern int do_pipe(int *); 1622extern int do_pipe(int *);
1621extern struct file *create_read_pipe(struct file *f); 1623extern struct file *create_read_pipe(struct file *f);