[PATCH 4/4] hfs: enable uncached buffer io support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now cont_write_begin() support DONTCACHE mode, let's set FOP_DONTCACHE
flag to enable uncached buffer io support for hfs.

Signed-off-by: Yangtao Li <frank.li@xxxxxxxx>
---
 fs/hfs/inode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c
index 8409e4412366..a62f45e9745d 100644
--- a/fs/hfs/inode.c
+++ b/fs/hfs/inode.c
@@ -695,6 +695,7 @@ static const struct file_operations hfs_file_operations = {
 	.fsync		= hfs_file_fsync,
 	.open		= hfs_file_open,
 	.release	= hfs_file_release,
+	.fop_flags	= FOP_DONTCACHE,
 };
 
 static const struct inode_operations hfs_file_inode_operations = {
-- 
2.48.1





[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux