diff options
Diffstat (limited to 'fs/affs/inode.c')
-rw-r--r-- | fs/affs/inode.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/affs/inode.c b/fs/affs/inode.c index a13b334a3910..3c4ec7d864c4 100644 --- a/fs/affs/inode.c +++ b/fs/affs/inode.c | |||
@@ -119,8 +119,7 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino) | |||
119 | goto bad_inode; | 119 | goto bad_inode; |
120 | #else | 120 | #else |
121 | inode->i_mode |= S_IFDIR; | 121 | inode->i_mode |= S_IFDIR; |
122 | inode->i_op = NULL; | 122 | /* ... and leave ->i_op and ->i_fop pointing to empty */ |
123 | inode->i_fop = NULL; | ||
124 | break; | 123 | break; |
125 | #endif | 124 | #endif |
126 | case ST_LINKFILE: | 125 | case ST_LINKFILE: |
@@ -293,8 +292,8 @@ affs_new_inode(struct inode *dir) | |||
293 | mark_buffer_dirty_inode(bh, inode); | 292 | mark_buffer_dirty_inode(bh, inode); |
294 | affs_brelse(bh); | 293 | affs_brelse(bh); |
295 | 294 | ||
296 | inode->i_uid = current->fsuid; | 295 | inode->i_uid = current_fsuid(); |
297 | inode->i_gid = current->fsgid; | 296 | inode->i_gid = current_fsgid(); |
298 | inode->i_ino = block; | 297 | inode->i_ino = block; |
299 | inode->i_nlink = 1; | 298 | inode->i_nlink = 1; |
300 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 299 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |