projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VFS: normal filesystems (and lustre): d_inode() annotations
[deliverable/linux.git]
/
fs
/
proc
/
base.c
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 3f3d7aeb071257a15afaa9a65f88642e307f80f3..a3d6b559178b5163c288394092c7b3ad317ae3d1 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-169,7
+169,7
@@
static int get_task_root(struct task_struct *task, struct path *root)
static int proc_cwd_link(struct dentry *dentry, struct path *path)
{
static int proc_cwd_link(struct dentry *dentry, struct path *path)
{
- struct task_struct *task = get_proc_task(d
entry->d_inode
);
+ struct task_struct *task = get_proc_task(d
_inode(dentry)
);
int result = -ENOENT;
if (task) {
int result = -ENOENT;
if (task) {
@@
-186,7
+186,7
@@
static int proc_cwd_link(struct dentry *dentry, struct path *path)
static int proc_root_link(struct dentry *dentry, struct path *path)
{
static int proc_root_link(struct dentry *dentry, struct path *path)
{
- struct task_struct *task = get_proc_task(d
entry->d_inode
);
+ struct task_struct *task = get_proc_task(d
_inode(dentry)
);
int result = -ENOENT;
if (task) {
int result = -ENOENT;
if (task) {
@@
-505,7
+505,7
@@
static int proc_fd_access_allowed(struct inode *inode)
int proc_setattr(struct dentry *dentry, struct iattr *attr)
{
int error;
int proc_setattr(struct dentry *dentry, struct iattr *attr)
{
int error;
- struct inode *inode = d
entry->d_inode
;
+ struct inode *inode = d
_inode(dentry)
;
if (attr->ia_valid & ATTR_MODE)
return -EPERM;
if (attr->ia_valid & ATTR_MODE)
return -EPERM;
@@
-1353,7
+1353,7
@@
static int proc_exe_link(struct dentry *dentry, struct path *exe_path)
struct mm_struct *mm;
struct file *exe_file;
struct mm_struct *mm;
struct file *exe_file;
- task = get_proc_task(d
entry->d_inode
);
+ task = get_proc_task(d
_inode(dentry)
);
if (!task)
return -ENOENT;
mm = get_task_mm(task);
if (!task)
return -ENOENT;
mm = get_task_mm(task);
@@
-1373,7
+1373,7
@@
static int proc_exe_link(struct dentry *dentry, struct path *exe_path)
static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd)
{
static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd)
{
- struct inode *inode = d
entry->d_inode
;
+ struct inode *inode = d
_inode(dentry)
;
struct path path;
int error = -EACCES;
struct path path;
int error = -EACCES;
@@
-1418,7
+1418,7
@@
static int do_proc_readlink(struct path *path, char __user *buffer, int buflen)
static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int buflen)
{
int error = -EACCES;
static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int buflen)
{
int error = -EACCES;
- struct inode *inode = d
entry->d_inode
;
+ struct inode *inode = d
_inode(dentry)
;
struct path path;
/* Are we allowed to snoop on the tasks file descriptors? */
struct path path;
/* Are we allowed to snoop on the tasks file descriptors? */
@@
-1488,7
+1488,7
@@
out_unlock:
int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{
int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{
- struct inode *inode = d
entry->d_inode
;
+ struct inode *inode = d
_inode(dentry)
;
struct task_struct *task;
const struct cred *cred;
struct pid_namespace *pid = dentry->d_sb->s_fs_info;
struct task_struct *task;
const struct cred *cred;
struct pid_namespace *pid = dentry->d_sb->s_fs_info;
@@
-1545,7
+1545,7
@@
int pid_revalidate(struct dentry *dentry, unsigned int flags)
if (flags & LOOKUP_RCU)
return -ECHILD;
if (flags & LOOKUP_RCU)
return -ECHILD;
- inode = d
entry->d_inode
;
+ inode = d
_inode(dentry)
;
task = get_proc_task(inode);
if (task) {
task = get_proc_task(inode);
if (task) {
@@
-1579,7
+1579,7
@@
int pid_delete_dentry(const struct dentry *dentry)
* If so, then don't put the dentry on the lru list,
* kill it immediately.
*/
* If so, then don't put the dentry on the lru list,
* kill it immediately.
*/
- return proc_inode_is_dead(d
entry->d_inode
);
+ return proc_inode_is_dead(d
_inode(dentry)
);
}
const struct dentry_operations pid_dentry_operations =
}
const struct dentry_operations pid_dentry_operations =
@@
-1617,12
+1617,12
@@
bool proc_fill_cache(struct file *file, struct dir_context *ctx,
child = d_alloc(dir, &qname);
if (!child)
goto end_instantiate;
child = d_alloc(dir, &qname);
if (!child)
goto end_instantiate;
- if (instantiate(d
ir->d_inode
, child, task, ptr) < 0) {
+ if (instantiate(d
_inode(dir)
, child, task, ptr) < 0) {
dput(child);
goto end_instantiate;
}
}
dput(child);
goto end_instantiate;
}
}
- inode =
child->d_inode
;
+ inode =
d_inode(child)
;
ino = inode->i_ino;
type = inode->i_mode >> 12;
dput(child);
ino = inode->i_ino;
type = inode->i_mode >> 12;
dput(child);
@@
-1665,7
+1665,7
@@
static int map_files_d_revalidate(struct dentry *dentry, unsigned int flags)
goto out_notask;
}
goto out_notask;
}
- inode = d
entry->d_inode
;
+ inode = d
_inode(dentry)
;
task = get_proc_task(inode);
if (!task)
goto out_notask;
task = get_proc_task(inode);
if (!task)
goto out_notask;
@@
-1718,7
+1718,7
@@
static int proc_map_files_get_link(struct dentry *dentry, struct path *path)
int rc;
rc = -ENOENT;
int rc;
rc = -ENOENT;
- task = get_proc_task(d
entry->d_inode
);
+ task = get_proc_task(d
_inode(dentry)
);
if (!task)
goto out;
if (!task)
goto out;
@@
-2851,13
+2851,13
@@
int proc_pid_readdir(struct file *file, struct dir_context *ctx)
return 0;
if (pos == TGID_OFFSET - 2) {
return 0;
if (pos == TGID_OFFSET - 2) {
- struct inode *inode =
ns->proc_self->d_inode
;
+ struct inode *inode =
d_inode(ns->proc_self)
;
if (!dir_emit(ctx, "self", 4, inode->i_ino, DT_LNK))
return 0;
ctx->pos = pos = pos + 1;
}
if (pos == TGID_OFFSET - 1) {
if (!dir_emit(ctx, "self", 4, inode->i_ino, DT_LNK))
return 0;
ctx->pos = pos = pos + 1;
}
if (pos == TGID_OFFSET - 1) {
- struct inode *inode =
ns->proc_thread_self->d_inode
;
+ struct inode *inode =
d_inode(ns->proc_thread_self)
;
if (!dir_emit(ctx, "thread-self", 11, inode->i_ino, DT_LNK))
return 0;
ctx->pos = pos = pos + 1;
if (!dir_emit(ctx, "thread-self", 11, inode->i_ino, DT_LNK))
return 0;
ctx->pos = pos = pos + 1;
@@
-3176,7
+3176,7
@@
static int proc_task_readdir(struct file *file, struct dir_context *ctx)
static int proc_task_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{
static int proc_task_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{
- struct inode *inode = d
entry->d_inode
;
+ struct inode *inode = d
_inode(dentry)
;
struct task_struct *p = get_proc_task(inode);
generic_fillattr(inode, stat);
struct task_struct *p = get_proc_task(inode);
generic_fillattr(inode, stat);
This page took
0.031715 seconds
and
5
git commands to generate.