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:
@@ -626,8 +626,8 @@ static int minix_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||
int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
|
||||
{
|
||||
struct super_block *sb = dentry->d_sb;
|
||||
generic_fillattr(dentry->d_inode, stat);
|
||||
if (INODE_VERSION(dentry->d_inode) == MINIX_V1)
|
||||
generic_fillattr(d_inode(dentry), stat);
|
||||
if (INODE_VERSION(d_inode(dentry)) == MINIX_V1)
|
||||
stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb);
|
||||
else
|
||||
stat->blocks = (sb->s_blocksize / 512) * V2_minix_blocks(stat->size, sb);
|
||||
|
Reference in New Issue
Block a user