Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359185
b: refs/heads/master
c: 182be68
h: refs/heads/master
i:
  359183: 913d73f
v: v3
  • Loading branch information
Al Viro committed Feb 26, 2013
1 parent ff3b07b commit f2d8613
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ecf3d1f1aa74da0d632b651a2e05a911f60e92c0
refs/heads/master: 182be684784334598eee1d90274e7f7aa0063616
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,7 @@ int ocfs2_readdir(struct file * filp, void * dirent, filldir_t filldir)

trace_ocfs2_readdir((unsigned long long)OCFS2_I(inode)->ip_blkno);

error = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level);
error = ocfs2_inode_lock_atime(inode, filp->f_path.mnt, &lock_level);
if (lock_level && error >= 0) {
/* We release EX lock which used to update atime
* and get PR lock again to reduce contention
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2526,7 +2526,7 @@ static ssize_t ocfs2_file_splice_read(struct file *in,
/*
* See the comment in ocfs2_file_aio_read()
*/
ret = ocfs2_inode_lock_atime(inode, in->f_vfsmnt, &lock_level);
ret = ocfs2_inode_lock_atime(inode, in->f_path.mnt, &lock_level);
if (ret < 0) {
mlog_errno(ret);
goto bail;
Expand Down Expand Up @@ -2589,7 +2589,7 @@ static ssize_t ocfs2_file_aio_read(struct kiocb *iocb,
* like i_size. This allows the checks down below
* generic_file_aio_read() a chance of actually working.
*/
ret = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level);
ret = ocfs2_inode_lock_atime(inode, filp->f_path.mnt, &lock_level);
if (ret < 0) {
mlog_errno(ret);
goto bail;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
int ret = 0, lock_level = 0;

ret = ocfs2_inode_lock_atime(file_inode(file),
file->f_vfsmnt, &lock_level);
file->f_path.mnt, &lock_level);
if (ret < 0) {
mlog_errno(ret);
goto out;
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@ struct file {
} f_u;
struct path f_path;
#define f_dentry f_path.dentry
#define f_vfsmnt f_path.mnt
const struct file_operations *f_op;

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/commoncap.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_c
if (!file_caps_enabled)
return 0;

if (bprm->file->f_vfsmnt->mnt_flags & MNT_NOSUID)
if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID)
return 0;

dentry = dget(bprm->file->f_dentry);
Expand Down

0 comments on commit f2d8613

Please sign in to comment.