69 JFS_IP(inode)->i_inline[inode->
i_size] =
'\0';
88 jfs_info(
"In jfs_commit_inode, inode = 0x%p", inode);
97 if (isReadOnly(inode)) {
102 jfs_err(
"jfs_commit_inode(0x%p) called on "
103 "read-only volume", inode);
142 jfs_err(
"jfs_write_inode: jfs_commit_inode failed!");
150 jfs_info(
"In jfs_evict_inode, inode = 0x%p", inode);
178 static int noisy = 5;
180 if (isReadOnly(inode)) {
185 jfs_err(
"jfs_dirty_inode called on read-only volume");
196 struct buffer_head *bh_result,
int create)
198 s64 lblock64 = lblock;
213 if (((lblock64 << ip->
i_sb->s_blocksize_bits) < ip->
i_size) &&
214 (!
xtLookup(ip, lblock64, xlen, &xflag, &xaddr, &xlen, 0)) &&
238 set_buffer_new(bh_result);
241 map_bh(bh_result, ip->
i_sb, xaddr);
242 bh_result->b_size = xlen << ip->
i_blkbits;
252 if ((rc =
extHint(ip, lblock64 << ip->
i_sb->s_blocksize_bits, &xad)))
254 rc =
extAlloc(ip, xlen, lblock64, &xad,
false);
258 set_buffer_new(bh_result);
304 loff_t
pos,
unsigned len,
unsigned flags,
305 struct page **pagep,
void **fsdata)
312 loff_t isize = mapping->
host->i_size;
313 if (pos + len > isize)
326 const struct iovec *iov, loff_t
offset,
unsigned long nr_segs)
328 struct file *file = iocb->
ki_filp;
332 ret = blockdev_direct_IO(rw, iocb, inode, iov, offset, nr_segs,
340 loff_t isize = i_size_read(inode);
341 loff_t
end = offset + iov_length(iov, nr_segs);
351 .readpage = jfs_readpage,
352 .readpages = jfs_readpages,
353 .writepage = jfs_writepage,
354 .writepages = jfs_writepages,
355 .write_begin = jfs_write_begin,
358 .direct_IO = jfs_direct_IO,
397 mark_inode_dirty(ip);
402 }
while (newsize > length);