diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/dir.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 62a2727f4ecf..a6d42efc76d2 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c | |||
@@ -1127,16 +1127,7 @@ int ubifs_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
1127 | struct ubifs_inode *ui = ubifs_inode(inode); | 1127 | struct ubifs_inode *ui = ubifs_inode(inode); |
1128 | 1128 | ||
1129 | mutex_lock(&ui->ui_mutex); | 1129 | mutex_lock(&ui->ui_mutex); |
1130 | stat->dev = inode->i_sb->s_dev; | 1130 | generic_fillattr(inode, stat); |
1131 | stat->ino = inode->i_ino; | ||
1132 | stat->mode = inode->i_mode; | ||
1133 | stat->nlink = inode->i_nlink; | ||
1134 | stat->uid = inode->i_uid; | ||
1135 | stat->gid = inode->i_gid; | ||
1136 | stat->rdev = inode->i_rdev; | ||
1137 | stat->atime = inode->i_atime; | ||
1138 | stat->mtime = inode->i_mtime; | ||
1139 | stat->ctime = inode->i_ctime; | ||
1140 | stat->blksize = UBIFS_BLOCK_SIZE; | 1131 | stat->blksize = UBIFS_BLOCK_SIZE; |
1141 | stat->size = ui->ui_size; | 1132 | stat->size = ui->ui_size; |
1142 | 1133 | ||