Skip to content

Commit 7c1ac89

Browse files
committed
cifs: Enable large folio support
Now that cifs is using netfslib for its VM interaction, it only sees I/O in terms of iov_iter iterators and does not see pages or folios. This makes large multipage folios transparent to cifs and so we can turn on multipage folios on regular files. Signed-off-by: David Howells <[email protected]> cc: Steve French <[email protected]> cc: Shyam Prasad N <[email protected]> cc: Rohith Surabattula <[email protected]> cc: Jeff Layton <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected]
1 parent b593634 commit 7c1ac89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/smb/client/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ static void cifs_set_ops(struct inode *inode)
7272
inode->i_data.a_ops = &cifs_addr_ops_smallbuf;
7373
else
7474
inode->i_data.a_ops = &cifs_addr_ops;
75+
mapping_set_large_folios(inode->i_mapping);
7576
break;
7677
case S_IFDIR:
7778
if (IS_AUTOMOUNT(inode)) {

0 commit comments

Comments
 (0)