Commit 6d42e7e9 authored by Al Viro's avatar Al Viro

ubifs: use generic_fillattr()

don't open-code it...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 77ba7877
...@@ -1127,16 +1127,7 @@ int ubifs_getattr(struct vfsmount *mnt, struct dentry *dentry, ...@@ -1127,16 +1127,7 @@ int ubifs_getattr(struct vfsmount *mnt, struct dentry *dentry,
struct ubifs_inode *ui = ubifs_inode(inode); struct ubifs_inode *ui = ubifs_inode(inode);
mutex_lock(&ui->ui_mutex); mutex_lock(&ui->ui_mutex);
stat->dev = inode->i_sb->s_dev; generic_fillattr(inode, stat);
stat->ino = inode->i_ino;
stat->mode = inode->i_mode;
stat->nlink = inode->i_nlink;
stat->uid = inode->i_uid;
stat->gid = inode->i_gid;
stat->rdev = inode->i_rdev;
stat->atime = inode->i_atime;
stat->mtime = inode->i_mtime;
stat->ctime = inode->i_ctime;
stat->blksize = UBIFS_BLOCK_SIZE; stat->blksize = UBIFS_BLOCK_SIZE;
stat->size = ui->ui_size; stat->size = ui->ui_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment