X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fxfs%2Fxfs_iops.c;h=b8ec045708c318c8297b32e71aa772dbb5bfeed4;hb=05955a703b752caa40dbe192db236424cfb0752a;hp=2b3b05c28e9e48bd6ea70819c33d4c59c3490b06;hpb=444ccf1b11a0dbc54e789d6d2634c2649dc27498;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 2b3b05c..b8ec045 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -1299,6 +1299,13 @@ xfs_setup_inode( mapping_set_gfp_mask(inode->i_mapping, (gfp_mask & ~(__GFP_FS))); /* + * For real-time inodes update the stable write flags to that of the RT + * device instead of the data device. + */ + if (S_ISREG(inode->i_mode) && XFS_IS_REALTIME_INODE(ip)) + xfs_update_stable_writes(ip); + + /* * If there is no attribute fork no ACL can exist on this inode, * and it can't have any file capabilities attached to it either. */