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/ntfs | |
| 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/ntfs')
| -rw-r--r-- | fs/ntfs/inode.c | 2 | ||||
| -rw-r--r-- | fs/ntfs/namei.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c index 1d0c21df0d80..d284f07eda77 100644 --- a/fs/ntfs/inode.c +++ b/fs/ntfs/inode.c | |||
| @@ -2889,7 +2889,7 @@ void ntfs_truncate_vfs(struct inode *vi) { | |||
| 2889 | */ | 2889 | */ |
| 2890 | int ntfs_setattr(struct dentry *dentry, struct iattr *attr) | 2890 | int ntfs_setattr(struct dentry *dentry, struct iattr *attr) |
| 2891 | { | 2891 | { |
| 2892 | struct inode *vi = dentry->d_inode; | 2892 | struct inode *vi = d_inode(dentry); |
| 2893 | int err; | 2893 | int err; |
| 2894 | unsigned int ia_valid = attr->ia_valid; | 2894 | unsigned int ia_valid = attr->ia_valid; |
| 2895 | 2895 | ||
diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c index b3973c2fd190..0f35b80d17fe 100644 --- a/fs/ntfs/namei.c +++ b/fs/ntfs/namei.c | |||
| @@ -292,14 +292,14 @@ const struct inode_operations ntfs_dir_inode_ops = { | |||
| 292 | * The code is based on the ext3 ->get_parent() implementation found in | 292 | * The code is based on the ext3 ->get_parent() implementation found in |
| 293 | * fs/ext3/namei.c::ext3_get_parent(). | 293 | * fs/ext3/namei.c::ext3_get_parent(). |
| 294 | * | 294 | * |
| 295 | * Note: ntfs_get_parent() is called with @child_dent->d_inode->i_mutex down. | 295 | * Note: ntfs_get_parent() is called with @d_inode(child_dent)->i_mutex down. |
| 296 | * | 296 | * |
| 297 | * Return the dentry of the parent directory on success or the error code on | 297 | * Return the dentry of the parent directory on success or the error code on |
| 298 | * error (IS_ERR() is true). | 298 | * error (IS_ERR() is true). |
| 299 | */ | 299 | */ |
| 300 | static struct dentry *ntfs_get_parent(struct dentry *child_dent) | 300 | static struct dentry *ntfs_get_parent(struct dentry *child_dent) |
| 301 | { | 301 | { |
| 302 | struct inode *vi = child_dent->d_inode; | 302 | struct inode *vi = d_inode(child_dent); |
| 303 | ntfs_inode *ni = NTFS_I(vi); | 303 | ntfs_inode *ni = NTFS_I(vi); |
| 304 | MFT_RECORD *mrec; | 304 | MFT_RECORD *mrec; |
| 305 | ntfs_attr_search_ctx *ctx; | 305 | ntfs_attr_search_ctx *ctx; |
