aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:25:59 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:57 -0400
commit2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch)
tree98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/hpfs
parentce0b16ddf18df35026164fda4a642ef10c01f442 (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/hpfs')
-rw-r--r--fs/hpfs/inode.c2
-rw-r--r--fs/hpfs/namei.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c
index 7ce4b74234a1..933c73780813 100644
--- a/fs/hpfs/inode.c
+++ b/fs/hpfs/inode.c
@@ -257,7 +257,7 @@ void hpfs_write_inode_nolock(struct inode *i)
257 257
258int hpfs_setattr(struct dentry *dentry, struct iattr *attr) 258int hpfs_setattr(struct dentry *dentry, struct iattr *attr)
259{ 259{
260 struct inode *inode = dentry->d_inode; 260 struct inode *inode = d_inode(dentry);
261 int error = -EINVAL; 261 int error = -EINVAL;
262 262
263 hpfs_lock(inode->i_sb); 263 hpfs_lock(inode->i_sb);
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c
index bdbc2c3080a4..a0872f239f04 100644
--- a/fs/hpfs/namei.c
+++ b/fs/hpfs/namei.c
@@ -359,7 +359,7 @@ static int hpfs_unlink(struct inode *dir, struct dentry *dentry)
359 unsigned len = dentry->d_name.len; 359 unsigned len = dentry->d_name.len;
360 struct quad_buffer_head qbh; 360 struct quad_buffer_head qbh;
361 struct hpfs_dirent *de; 361 struct hpfs_dirent *de;
362 struct inode *inode = dentry->d_inode; 362 struct inode *inode = d_inode(dentry);
363 dnode_secno dno; 363 dnode_secno dno;
364 int r; 364 int r;
365 int rep = 0; 365 int rep = 0;
@@ -433,7 +433,7 @@ static int hpfs_rmdir(struct inode *dir, struct dentry *dentry)
433 unsigned len = dentry->d_name.len; 433 unsigned len = dentry->d_name.len;
434 struct quad_buffer_head qbh; 434 struct quad_buffer_head qbh;
435 struct hpfs_dirent *de; 435 struct hpfs_dirent *de;
436 struct inode *inode = dentry->d_inode; 436 struct inode *inode = d_inode(dentry);
437 dnode_secno dno; 437 dnode_secno dno;
438 int n_items = 0; 438 int n_items = 0;
439 int err; 439 int err;
@@ -522,8 +522,8 @@ static int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry,
522 unsigned old_len = old_dentry->d_name.len; 522 unsigned old_len = old_dentry->d_name.len;
523 const unsigned char *new_name = new_dentry->d_name.name; 523 const unsigned char *new_name = new_dentry->d_name.name;
524 unsigned new_len = new_dentry->d_name.len; 524 unsigned new_len = new_dentry->d_name.len;
525 struct inode *i = old_dentry->d_inode; 525 struct inode *i = d_inode(old_dentry);
526 struct inode *new_inode = new_dentry->d_inode; 526 struct inode *new_inode = d_inode(new_dentry);
527 struct quad_buffer_head qbh, qbh1; 527 struct quad_buffer_head qbh, qbh1;
528 struct hpfs_dirent *dep, *nde; 528 struct hpfs_dirent *dep, *nde;
529 struct hpfs_dirent de; 529 struct hpfs_dirent de;