diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 70b99fbb560b..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> |
@@ -482,21 +483,6 @@ struct block_device { | |||
482 | }; | 483 | }; |
483 | 484 | ||
484 | /* | 485 | /* |
485 | * bdev->bd_mutex nesting subclasses for the lock validator: | ||
486 | * | ||
487 | * 0: normal | ||
488 | * 1: 'whole' | ||
489 | * 2: 'partition' | ||
490 | */ | ||
491 | enum bdev_bd_mutex_lock_class | ||
492 | { | ||
493 | BD_MUTEX_NORMAL, | ||
494 | BD_MUTEX_WHOLE, | ||
495 | BD_MUTEX_PARTITION | ||
496 | }; | ||
497 | |||
498 | |||
499 | /* | ||
500 | * Radix-tree tags, for tagging dirty and writeback pages within the pagecache | 486 | * Radix-tree tags, for tagging dirty and writeback pages within the pagecache |
501 | * radix trees | 487 | * radix trees |
502 | */ | 488 | */ |
@@ -726,8 +712,9 @@ struct file { | |||
726 | struct list_head fu_list; | 712 | struct list_head fu_list; |
727 | struct rcu_head fu_rcuhead; | 713 | struct rcu_head fu_rcuhead; |
728 | } f_u; | 714 | } f_u; |
729 | struct dentry *f_dentry; | 715 | struct path f_path; |
730 | struct vfsmount *f_vfsmnt; | 716 | #define f_dentry f_path.dentry |
717 | #define f_vfsmnt f_path.mnt | ||
731 | const struct file_operations *f_op; | 718 | const struct file_operations *f_op; |
732 | atomic_t f_count; | 719 | atomic_t f_count; |
733 | unsigned int f_flags; | 720 | unsigned int f_flags; |
@@ -1239,7 +1226,7 @@ extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry); | |||
1239 | static inline void file_accessed(struct file *file) | 1226 | static inline void file_accessed(struct file *file) |
1240 | { | 1227 | { |
1241 | if (!(file->f_flags & O_NOATIME)) | 1228 | if (!(file->f_flags & O_NOATIME)) |
1242 | touch_atime(file->f_vfsmnt, file->f_dentry); | 1229 | touch_atime(file->f_path.mnt, file->f_path.dentry); |
1243 | } | 1230 | } |
1244 | 1231 | ||
1245 | int sync_inode(struct inode *inode, struct writeback_control *wbc); | 1232 | int sync_inode(struct inode *inode, struct writeback_control *wbc); |
@@ -1499,7 +1486,6 @@ extern void bd_set_size(struct block_device *, loff_t size); | |||
1499 | extern void bd_forget(struct inode *inode); | 1486 | extern void bd_forget(struct inode *inode); |
1500 | extern void bdput(struct block_device *); | 1487 | extern void bdput(struct block_device *); |
1501 | extern struct block_device *open_by_devnum(dev_t, unsigned); | 1488 | extern struct block_device *open_by_devnum(dev_t, unsigned); |
1502 | extern struct block_device *open_partition_by_devnum(dev_t, unsigned); | ||
1503 | extern const struct address_space_operations def_blk_aops; | 1489 | extern const struct address_space_operations def_blk_aops; |
1504 | #else | 1490 | #else |
1505 | static inline void bd_forget(struct inode *inode) {} | 1491 | static inline void bd_forget(struct inode *inode) {} |
@@ -1517,7 +1503,6 @@ extern int blkdev_driver_ioctl(struct inode *inode, struct file *file, | |||
1517 | extern long compat_blkdev_ioctl(struct file *, unsigned, unsigned long); | 1503 | extern long compat_blkdev_ioctl(struct file *, unsigned, unsigned long); |
1518 | extern int blkdev_get(struct block_device *, mode_t, unsigned); | 1504 | extern int blkdev_get(struct block_device *, mode_t, unsigned); |
1519 | extern int blkdev_put(struct block_device *); | 1505 | extern int blkdev_put(struct block_device *); |
1520 | extern int blkdev_put_partition(struct block_device *); | ||
1521 | extern int bd_claim(struct block_device *, void *); | 1506 | extern int bd_claim(struct block_device *, void *); |
1522 | extern void bd_release(struct block_device *); | 1507 | extern void bd_release(struct block_device *); |
1523 | #ifdef CONFIG_SYSFS | 1508 | #ifdef CONFIG_SYSFS |
@@ -1632,7 +1617,7 @@ static inline void put_write_access(struct inode * inode) | |||
1632 | static inline void allow_write_access(struct file *file) | 1617 | static inline void allow_write_access(struct file *file) |
1633 | { | 1618 | { |
1634 | if (file) | 1619 | if (file) |
1635 | atomic_inc(&file->f_dentry->d_inode->i_writecount); | 1620 | atomic_inc(&file->f_path.dentry->d_inode->i_writecount); |
1636 | } | 1621 | } |
1637 | extern int do_pipe(int *); | 1622 | extern int do_pipe(int *); |
1638 | extern struct file *create_read_pipe(struct file *f); | 1623 | extern struct file *create_read_pipe(struct file *f); |