Lines Matching full:sbi

37 	struct sysv_sb_info *sbi = SYSV_SB(sb);  in sysv_sync_fs()  local
40 mutex_lock(&sbi->s_lock); in sysv_sync_fs()
47 old_time = fs32_to_cpu(sbi, *sbi->s_sb_time); in sysv_sync_fs()
48 if (sbi->s_type == FSTYPE_SYSV4) { in sysv_sync_fs()
49 if (*sbi->s_sb_state == cpu_to_fs32(sbi, 0x7c269d38u - old_time)) in sysv_sync_fs()
50 *sbi->s_sb_state = cpu_to_fs32(sbi, 0x7c269d38u - time); in sysv_sync_fs()
51 *sbi->s_sb_time = cpu_to_fs32(sbi, time); in sysv_sync_fs()
52 mark_buffer_dirty(sbi->s_bh2); in sysv_sync_fs()
55 mutex_unlock(&sbi->s_lock); in sysv_sync_fs()
62 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_remount() local
65 if (sbi->s_forced_ro) in sysv_remount()
72 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_put_super() local
76 mark_buffer_dirty(sbi->s_bh1); in sysv_put_super()
77 if (sbi->s_bh1 != sbi->s_bh2) in sysv_put_super()
78 mark_buffer_dirty(sbi->s_bh2); in sysv_put_super()
81 brelse(sbi->s_bh1); in sysv_put_super()
82 if (sbi->s_bh1 != sbi->s_bh2) in sysv_put_super()
83 brelse(sbi->s_bh2); in sysv_put_super()
85 kfree(sbi); in sysv_put_super()
91 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_statfs() local
96 buf->f_blocks = sbi->s_ndatazones; in sysv_statfs()
98 buf->f_files = sbi->s_ninodes; in sysv_statfs()
108 static inline void read3byte(struct sysv_sb_info *sbi, in read3byte() argument
111 if (sbi->s_bytesex == BYTESEX_PDP) { in read3byte()
116 } else if (sbi->s_bytesex == BYTESEX_LE) { in read3byte()
129 static inline void write3byte(struct sysv_sb_info *sbi, in write3byte() argument
132 if (sbi->s_bytesex == BYTESEX_PDP) { in write3byte()
136 } else if (sbi->s_bytesex == BYTESEX_LE) { in write3byte()
172 struct sysv_sb_info * sbi = SYSV_SB(sb); in sysv_iget() local
179 if (!ino || ino > sbi->s_ninodes) { in sysv_iget()
198 inode->i_mode = fs16_to_cpu(sbi, raw_inode->i_mode); in sysv_iget()
199 i_uid_write(inode, (uid_t)fs16_to_cpu(sbi, raw_inode->i_uid)); in sysv_iget()
200 i_gid_write(inode, (gid_t)fs16_to_cpu(sbi, raw_inode->i_gid)); in sysv_iget()
201 set_nlink(inode, fs16_to_cpu(sbi, raw_inode->i_nlink)); in sysv_iget()
202 inode->i_size = fs32_to_cpu(sbi, raw_inode->i_size); in sysv_iget()
203 inode_set_atime(inode, fs32_to_cpu(sbi, raw_inode->i_atime), 0); in sysv_iget()
204 inode_set_mtime(inode, fs32_to_cpu(sbi, raw_inode->i_mtime), 0); in sysv_iget()
205 inode_set_ctime(inode, fs32_to_cpu(sbi, raw_inode->i_ctime), 0); in sysv_iget()
210 read3byte(sbi, &raw_inode->i_data[3*block], in sysv_iget()
216 old_decode_dev(fs32_to_cpu(sbi, si->i_data[0]))); in sysv_iget()
230 struct sysv_sb_info * sbi = SYSV_SB(sb); in __sysv_write_inode() local
238 if (!ino || ino > sbi->s_ninodes) { in __sysv_write_inode()
249 raw_inode->i_mode = cpu_to_fs16(sbi, inode->i_mode); in __sysv_write_inode()
250 raw_inode->i_uid = cpu_to_fs16(sbi, fs_high2lowuid(i_uid_read(inode))); in __sysv_write_inode()
251 raw_inode->i_gid = cpu_to_fs16(sbi, fs_high2lowgid(i_gid_read(inode))); in __sysv_write_inode()
252 raw_inode->i_nlink = cpu_to_fs16(sbi, inode->i_nlink); in __sysv_write_inode()
253 raw_inode->i_size = cpu_to_fs32(sbi, inode->i_size); in __sysv_write_inode()
254 raw_inode->i_atime = cpu_to_fs32(sbi, inode_get_atime_sec(inode)); in __sysv_write_inode()
255 raw_inode->i_mtime = cpu_to_fs32(sbi, inode_get_mtime_sec(inode)); in __sysv_write_inode()
256 raw_inode->i_ctime = cpu_to_fs32(sbi, inode_get_ctime_sec(inode)); in __sysv_write_inode()
260 si->i_data[0] = cpu_to_fs32(sbi, old_encode_dev(inode->i_rdev)); in __sysv_write_inode()
262 write3byte(sbi, (u8 *)&si->i_data[block], in __sysv_write_inode()