mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ce0b16ddf1
commit
2b0143b5c9
278 changed files with 1419 additions and 1420 deletions
|
|
@ -257,7 +257,7 @@ void hpfs_write_inode_nolock(struct inode *i)
|
|||
|
||||
int hpfs_setattr(struct dentry *dentry, struct iattr *attr)
|
||||
{
|
||||
struct inode *inode = dentry->d_inode;
|
||||
struct inode *inode = d_inode(dentry);
|
||||
int error = -EINVAL;
|
||||
|
||||
hpfs_lock(inode->i_sb);
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ static int hpfs_unlink(struct inode *dir, struct dentry *dentry)
|
|||
unsigned len = dentry->d_name.len;
|
||||
struct quad_buffer_head qbh;
|
||||
struct hpfs_dirent *de;
|
||||
struct inode *inode = dentry->d_inode;
|
||||
struct inode *inode = d_inode(dentry);
|
||||
dnode_secno dno;
|
||||
int r;
|
||||
int rep = 0;
|
||||
|
|
@ -433,7 +433,7 @@ static int hpfs_rmdir(struct inode *dir, struct dentry *dentry)
|
|||
unsigned len = dentry->d_name.len;
|
||||
struct quad_buffer_head qbh;
|
||||
struct hpfs_dirent *de;
|
||||
struct inode *inode = dentry->d_inode;
|
||||
struct inode *inode = d_inode(dentry);
|
||||
dnode_secno dno;
|
||||
int n_items = 0;
|
||||
int err;
|
||||
|
|
@ -522,8 +522,8 @@ static int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|||
unsigned old_len = old_dentry->d_name.len;
|
||||
const unsigned char *new_name = new_dentry->d_name.name;
|
||||
unsigned new_len = new_dentry->d_name.len;
|
||||
struct inode *i = old_dentry->d_inode;
|
||||
struct inode *new_inode = new_dentry->d_inode;
|
||||
struct inode *i = d_inode(old_dentry);
|
||||
struct inode *new_inode = d_inode(new_dentry);
|
||||
struct quad_buffer_head qbh, qbh1;
|
||||
struct hpfs_dirent *dep, *nde;
|
||||
struct hpfs_dirent de;
|
||||
|
|
|
|||
Loading…
Reference in a new issue