diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-24 02:21:54 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-26 02:46:10 -0500 |
commit | 182be684784334598eee1d90274e7f7aa0063616 (patch) | |
tree | 7b4d555a24fbbe9b22086f31246d1aa6df5e5330 | |
parent | ecf3d1f1aa74da0d632b651a2e05a911f60e92c0 (diff) |
kill f_vfsmnt
very few users left...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/ocfs2/dir.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/file.c | 4 | ||||
-rw-r--r-- | fs/ocfs2/mmap.c | 2 | ||||
-rw-r--r-- | include/linux/fs.h | 1 | ||||
-rw-r--r-- | security/commoncap.c | 2 |
5 files changed, 5 insertions, 6 deletions
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index ac0d4a0e8a41..c87d0793bdec 100644 --- a/fs/ocfs2/dir.c +++ b/fs/ocfs2/dir.c | |||
@@ -2020,7 +2020,7 @@ int ocfs2_readdir(struct file * filp, void * dirent, filldir_t filldir) | |||
2020 | 2020 | ||
2021 | trace_ocfs2_readdir((unsigned long long)OCFS2_I(inode)->ip_blkno); | 2021 | trace_ocfs2_readdir((unsigned long long)OCFS2_I(inode)->ip_blkno); |
2022 | 2022 | ||
2023 | error = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level); | 2023 | error = ocfs2_inode_lock_atime(inode, filp->f_path.mnt, &lock_level); |
2024 | if (lock_level && error >= 0) { | 2024 | if (lock_level && error >= 0) { |
2025 | /* We release EX lock which used to update atime | 2025 | /* We release EX lock which used to update atime |
2026 | * and get PR lock again to reduce contention | 2026 | * and get PR lock again to reduce contention |
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 04098af9dbc8..5bcd865905ef 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -2526,7 +2526,7 @@ static ssize_t ocfs2_file_splice_read(struct file *in, | |||
2526 | /* | 2526 | /* |
2527 | * See the comment in ocfs2_file_aio_read() | 2527 | * See the comment in ocfs2_file_aio_read() |
2528 | */ | 2528 | */ |
2529 | ret = ocfs2_inode_lock_atime(inode, in->f_vfsmnt, &lock_level); | 2529 | ret = ocfs2_inode_lock_atime(inode, in->f_path.mnt, &lock_level); |
2530 | if (ret < 0) { | 2530 | if (ret < 0) { |
2531 | mlog_errno(ret); | 2531 | mlog_errno(ret); |
2532 | goto bail; | 2532 | goto bail; |
@@ -2589,7 +2589,7 @@ static ssize_t ocfs2_file_aio_read(struct kiocb *iocb, | |||
2589 | * like i_size. This allows the checks down below | 2589 | * like i_size. This allows the checks down below |
2590 | * generic_file_aio_read() a chance of actually working. | 2590 | * generic_file_aio_read() a chance of actually working. |
2591 | */ | 2591 | */ |
2592 | ret = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level); | 2592 | ret = ocfs2_inode_lock_atime(inode, filp->f_path.mnt, &lock_level); |
2593 | if (ret < 0) { | 2593 | if (ret < 0) { |
2594 | mlog_errno(ret); | 2594 | mlog_errno(ret); |
2595 | goto bail; | 2595 | goto bail; |
diff --git a/fs/ocfs2/mmap.c b/fs/ocfs2/mmap.c index 07c585b85000..10d66c75cecb 100644 --- a/fs/ocfs2/mmap.c +++ b/fs/ocfs2/mmap.c | |||
@@ -181,7 +181,7 @@ int ocfs2_mmap(struct file *file, struct vm_area_struct *vma) | |||
181 | int ret = 0, lock_level = 0; | 181 | int ret = 0, lock_level = 0; |
182 | 182 | ||
183 | ret = ocfs2_inode_lock_atime(file_inode(file), | 183 | ret = ocfs2_inode_lock_atime(file_inode(file), |
184 | file->f_vfsmnt, &lock_level); | 184 | file->f_path.mnt, &lock_level); |
185 | if (ret < 0) { | 185 | if (ret < 0) { |
186 | mlog_errno(ret); | 186 | mlog_errno(ret); |
187 | goto out; | 187 | goto out; |
diff --git a/include/linux/fs.h b/include/linux/fs.h index da94011ae83c..c766afd1e684 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -769,7 +769,6 @@ struct file { | |||
769 | } f_u; | 769 | } f_u; |
770 | struct path f_path; | 770 | struct path f_path; |
771 | #define f_dentry f_path.dentry | 771 | #define f_dentry f_path.dentry |
772 | #define f_vfsmnt f_path.mnt | ||
773 | const struct file_operations *f_op; | 772 | const struct file_operations *f_op; |
774 | 773 | ||
775 | /* | 774 | /* |
diff --git a/security/commoncap.c b/security/commoncap.c index 7ee08c756d6b..c44b6fe6648e 100644 --- a/security/commoncap.c +++ b/security/commoncap.c | |||
@@ -440,7 +440,7 @@ static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_c | |||
440 | if (!file_caps_enabled) | 440 | if (!file_caps_enabled) |
441 | return 0; | 441 | return 0; |
442 | 442 | ||
443 | if (bprm->file->f_vfsmnt->mnt_flags & MNT_NOSUID) | 443 | if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) |
444 | return 0; | 444 | return 0; |
445 | 445 | ||
446 | dentry = dget(bprm->file->f_dentry); | 446 | dentry = dget(bprm->file->f_dentry); |