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>
This commit is contained in:
@@ -156,7 +156,7 @@ minix_dirent *minix_find_entry(struct dentry *dentry, struct page **res_page)
|
||||
{
|
||||
const char * name = dentry->d_name.name;
|
||||
int namelen = dentry->d_name.len;
|
||||
struct inode * dir = dentry->d_parent->d_inode;
|
||||
struct inode * dir = d_inode(dentry->d_parent);
|
||||
struct super_block * sb = dir->i_sb;
|
||||
struct minix_sb_info * sbi = minix_sb(sb);
|
||||
unsigned long n;
|
||||
@@ -203,7 +203,7 @@ found:
|
||||
|
||||
int minix_add_link(struct dentry *dentry, struct inode *inode)
|
||||
{
|
||||
struct inode *dir = dentry->d_parent->d_inode;
|
||||
struct inode *dir = d_inode(dentry->d_parent);
|
||||
const char * name = dentry->d_name.name;
|
||||
int namelen = dentry->d_name.len;
|
||||
struct super_block * sb = dir->i_sb;
|
||||
|
Reference in New Issue
Block a user