Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'for-linus-5.14-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux

Pull orangefs updates from Mike Marshall:
"A read-ahead adjustment and a fix.

The readahead adjustment was suggested by Matthew Wilcox and looks
like how I should have written it in the first place... the "df fix"
was suggested by Walt Ligon, some Orangefs users have been complaining
about whacky df output..."

* tag 'for-linus-5.14-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
orangefs: fix orangefs df output.
orangefs: readahead adjustment

+4 -5
+3 -4
fs/orangefs/inode.c
··· 249 249 { 250 250 loff_t offset; 251 251 struct iov_iter iter; 252 - struct file *file = rac->file; 253 - struct inode *inode = file->f_mapping->host; 252 + struct inode *inode = rac->mapping->host; 254 253 struct xarray *i_pages; 255 254 struct page *page; 256 255 loff_t new_start = readahead_pos(rac); ··· 268 269 readahead_expand(rac, new_start, new_len); 269 270 270 271 offset = readahead_pos(rac); 271 - i_pages = &file->f_mapping->i_pages; 272 + i_pages = &rac->mapping->i_pages; 272 273 273 274 iov_iter_xarray(&iter, READ, i_pages, offset, readahead_length(rac)); 274 275 275 276 /* read in the pages. */ 276 277 if ((ret = wait_for_direct_io(ORANGEFS_IO_READ, inode, 277 278 &offset, &iter, readahead_length(rac), 278 - inode->i_size, NULL, NULL, file)) < 0) 279 + inode->i_size, NULL, NULL, rac->file)) < 0) 279 280 gossip_debug(GOSSIP_FILE_DEBUG, 280 281 "%s: wait_for_direct_io failed. \n", __func__); 281 282 else
+1 -1
fs/orangefs/super.c
··· 209 209 buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail; 210 210 buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total; 211 211 buf->f_ffree = (sector_t) new_op->downcall.resp.statfs.files_avail; 212 - buf->f_frsize = sb->s_blocksize; 212 + buf->f_frsize = 0; 213 213 214 214 out_op_release: 215 215 op_release(new_op);