projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'mvebu-dt64-4.8-1' of git://git.infradead.org/linux-mvebu into next/dt64
[deliverable/linux.git]
/
fs
/
open.c
diff --git
a/fs/open.c
b/fs/open.c
index 081d3d6df74ba54ccd0e1d754640b218e54f4111..93ae3cdee4ab093c8a23c0505a45d5673ccbc6b6 100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-65,7
+65,7
@@
int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
return ret;
}
return ret;
}
-long vfs_truncate(struct path *path, loff_t length)
+long vfs_truncate(
const
struct path *path, loff_t length)
{
struct inode *inode;
long error;
{
struct inode *inode;
long error;
@@
-499,7
+499,7
@@
out:
return error;
}
return error;
}
-static int chmod_common(struct path *path, umode_t mode)
+static int chmod_common(
const
struct path *path, umode_t mode)
{
struct inode *inode = path->dentry->d_inode;
struct inode *delegated_inode = NULL;
{
struct inode *inode = path->dentry->d_inode;
struct inode *delegated_inode = NULL;
@@
-564,7
+564,7
@@
SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode)
return sys_fchmodat(AT_FDCWD, filename, mode);
}
return sys_fchmodat(AT_FDCWD, filename, mode);
}
-static int chown_common(struct path *path, uid_t user, gid_t group)
+static int chown_common(
const
struct path *path, uid_t user, gid_t group)
{
struct inode *inode = path->dentry->d_inode;
struct inode *delegated_inode = NULL;
{
struct inode *inode = path->dentry->d_inode;
struct inode *delegated_inode = NULL;
@@
-713,7
+713,7
@@
static int do_dentry_open(struct file *f,
}
/* POSIX.1-2008/SUSv4 Section XSI 2.9.7 */
}
/* POSIX.1-2008/SUSv4 Section XSI 2.9.7 */
- if (S_ISREG(inode->i_mode))
+ if (S_ISREG(inode->i_mode)
|| S_ISDIR(inode->i_mode)
)
f->f_mode |= FMODE_ATOMIC_POS;
f->f_op = fops_get(inode->i_fop);
f->f_mode |= FMODE_ATOMIC_POS;
f->f_op = fops_get(inode->i_fop);
This page took
0.026372 seconds
and
5
git commands to generate.