diff options
| author | David Howells <dhowells@redhat.com> | 2015-03-17 18:25:59 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:06:57 -0400 |
| commit | 2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch) | |
| tree | 98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/sysv | |
| parent | ce0b16ddf18df35026164fda4a642ef10c01f442 (diff) | |
VFS: normal filesystems (and lustre): d_inode() annotations
that's the bulk of filesystem drivers dealing with inodes of their own
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysv')
| -rw-r--r-- | fs/sysv/dir.c | 4 | ||||
| -rw-r--r-- | fs/sysv/file.c | 2 | ||||
| -rw-r--r-- | fs/sysv/itree.c | 2 | ||||
| -rw-r--r-- | fs/sysv/namei.c | 10 | ||||
| -rw-r--r-- | fs/sysv/symlink.c | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c index d42291d08215..8f3555f00c54 100644 --- a/fs/sysv/dir.c +++ b/fs/sysv/dir.c | |||
| @@ -132,7 +132,7 @@ struct sysv_dir_entry *sysv_find_entry(struct dentry *dentry, struct page **res_ | |||
| 132 | { | 132 | { |
| 133 | const char * name = dentry->d_name.name; | 133 | const char * name = dentry->d_name.name; |
| 134 | int namelen = dentry->d_name.len; | 134 | int namelen = dentry->d_name.len; |
| 135 | struct inode * dir = dentry->d_parent->d_inode; | 135 | struct inode * dir = d_inode(dentry->d_parent); |
| 136 | unsigned long start, n; | 136 | unsigned long start, n; |
| 137 | unsigned long npages = dir_pages(dir); | 137 | unsigned long npages = dir_pages(dir); |
| 138 | struct page *page = NULL; | 138 | struct page *page = NULL; |
| @@ -176,7 +176,7 @@ found: | |||
| 176 | 176 | ||
| 177 | int sysv_add_link(struct dentry *dentry, struct inode *inode) | 177 | int sysv_add_link(struct dentry *dentry, struct inode *inode) |
| 178 | { | 178 | { |
| 179 | struct inode *dir = dentry->d_parent->d_inode; | 179 | struct inode *dir = d_inode(dentry->d_parent); |
| 180 | const char * name = dentry->d_name.name; | 180 | const char * name = dentry->d_name.name; |
| 181 | int namelen = dentry->d_name.len; | 181 | int namelen = dentry->d_name.len; |
| 182 | struct page *page = NULL; | 182 | struct page *page = NULL; |
diff --git a/fs/sysv/file.c b/fs/sysv/file.c index a48e30410ad1..82ddc09061e2 100644 --- a/fs/sysv/file.c +++ b/fs/sysv/file.c | |||
| @@ -30,7 +30,7 @@ const struct file_operations sysv_file_operations = { | |||
| 30 | 30 | ||
| 31 | static int sysv_setattr(struct dentry *dentry, struct iattr *attr) | 31 | static int sysv_setattr(struct dentry *dentry, struct iattr *attr) |
| 32 | { | 32 | { |
| 33 | struct inode *inode = dentry->d_inode; | 33 | struct inode *inode = d_inode(dentry); |
| 34 | int error; | 34 | int error; |
| 35 | 35 | ||
| 36 | error = inode_change_ok(inode, attr); | 36 | error = inode_change_ok(inode, attr); |
diff --git a/fs/sysv/itree.c b/fs/sysv/itree.c index 66bc316927e8..2fde40acf024 100644 --- a/fs/sysv/itree.c +++ b/fs/sysv/itree.c | |||
| @@ -443,7 +443,7 @@ static unsigned sysv_nblocks(struct super_block *s, loff_t size) | |||
| 443 | int sysv_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) | 443 | int sysv_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) |
| 444 | { | 444 | { |
| 445 | struct super_block *s = dentry->d_sb; | 445 | struct super_block *s = dentry->d_sb; |
| 446 | generic_fillattr(dentry->d_inode, stat); | 446 | generic_fillattr(d_inode(dentry), stat); |
| 447 | stat->blocks = (s->s_blocksize / 512) * sysv_nblocks(s, stat->size); | 447 | stat->blocks = (s->s_blocksize / 512) * sysv_nblocks(s, stat->size); |
| 448 | stat->blksize = s->s_blocksize; | 448 | stat->blksize = s->s_blocksize; |
| 449 | return 0; | 449 | return 0; |
diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index 731b2bbcaab3..11e83ed0b4bf 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c | |||
| @@ -118,7 +118,7 @@ out_fail: | |||
| 118 | static int sysv_link(struct dentry * old_dentry, struct inode * dir, | 118 | static int sysv_link(struct dentry * old_dentry, struct inode * dir, |
| 119 | struct dentry * dentry) | 119 | struct dentry * dentry) |
| 120 | { | 120 | { |
| 121 | struct inode *inode = old_dentry->d_inode; | 121 | struct inode *inode = d_inode(old_dentry); |
| 122 | 122 | ||
| 123 | inode->i_ctime = CURRENT_TIME_SEC; | 123 | inode->i_ctime = CURRENT_TIME_SEC; |
| 124 | inode_inc_link_count(inode); | 124 | inode_inc_link_count(inode); |
| @@ -166,7 +166,7 @@ out_dir: | |||
| 166 | 166 | ||
| 167 | static int sysv_unlink(struct inode * dir, struct dentry * dentry) | 167 | static int sysv_unlink(struct inode * dir, struct dentry * dentry) |
| 168 | { | 168 | { |
| 169 | struct inode * inode = dentry->d_inode; | 169 | struct inode * inode = d_inode(dentry); |
| 170 | struct page * page; | 170 | struct page * page; |
| 171 | struct sysv_dir_entry * de; | 171 | struct sysv_dir_entry * de; |
| 172 | int err = -ENOENT; | 172 | int err = -ENOENT; |
| @@ -187,7 +187,7 @@ out: | |||
| 187 | 187 | ||
| 188 | static int sysv_rmdir(struct inode * dir, struct dentry * dentry) | 188 | static int sysv_rmdir(struct inode * dir, struct dentry * dentry) |
| 189 | { | 189 | { |
| 190 | struct inode *inode = dentry->d_inode; | 190 | struct inode *inode = d_inode(dentry); |
| 191 | int err = -ENOTEMPTY; | 191 | int err = -ENOTEMPTY; |
| 192 | 192 | ||
| 193 | if (sysv_empty_dir(inode)) { | 193 | if (sysv_empty_dir(inode)) { |
| @@ -208,8 +208,8 @@ static int sysv_rmdir(struct inode * dir, struct dentry * dentry) | |||
| 208 | static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, | 208 | static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, |
| 209 | struct inode * new_dir, struct dentry * new_dentry) | 209 | struct inode * new_dir, struct dentry * new_dentry) |
| 210 | { | 210 | { |
| 211 | struct inode * old_inode = old_dentry->d_inode; | 211 | struct inode * old_inode = d_inode(old_dentry); |
| 212 | struct inode * new_inode = new_dentry->d_inode; | 212 | struct inode * new_inode = d_inode(new_dentry); |
| 213 | struct page * dir_page = NULL; | 213 | struct page * dir_page = NULL; |
| 214 | struct sysv_dir_entry * dir_de = NULL; | 214 | struct sysv_dir_entry * dir_de = NULL; |
| 215 | struct page * old_page; | 215 | struct page * old_page; |
diff --git a/fs/sysv/symlink.c b/fs/sysv/symlink.c index 00d2f8a43e4e..d3fa0d703314 100644 --- a/fs/sysv/symlink.c +++ b/fs/sysv/symlink.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd) | 11 | static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd) |
| 12 | { | 12 | { |
| 13 | nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->i_data); | 13 | nd_set_link(nd, (char *)SYSV_I(d_inode(dentry))->i_data); |
| 14 | return NULL; | 14 | return NULL; |
| 15 | } | 15 | } |
| 16 | 16 | ||
