Message ID | 20200407182958.568475-3-ira.weiny@intel.com (mailing list archive) |
---|---|
State | Deferred, archived |
Headers | show |
Series | Enable per-file/per-directory DAX operations V6 | expand |
On Tue, Apr 07, 2020 at 11:29:52AM -0700, ira.weiny@intel.com wrote: > static inline bool io_is_direct(struct file *filp) > { > - return (filp->f_flags & O_DIRECT) || IS_DAX(filp->f_mapping->host); > + return (filp->f_flags & O_DIRECT); > } As requested last time: Can you please also just remove io_is_direct?
On Thu, Apr 09, 2020 at 09:31:34AM +0200, Christoph Hellwig wrote: > On Tue, Apr 07, 2020 at 11:29:52AM -0700, ira.weiny@intel.com wrote: > > static inline bool io_is_direct(struct file *filp) > > { > > - return (filp->f_flags & O_DIRECT) || IS_DAX(filp->f_mapping->host); > > + return (filp->f_flags & O_DIRECT); > > } > > As requested last time: Can you please also just remove io_is_direct? FWIW I just found this mail in my junk folder... My fault I know... :-/ Regardless I did not see that request last time but I can do that, Done for V7 Ira
diff --git a/include/linux/fs.h b/include/linux/fs.h index abedbffe2c9e..f97b99c36cee 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3389,7 +3389,7 @@ extern int file_update_time(struct file *file); static inline bool io_is_direct(struct file *filp) { - return (filp->f_flags & O_DIRECT) || IS_DAX(filp->f_mapping->host); + return (filp->f_flags & O_DIRECT); } static inline bool vma_is_dax(struct vm_area_struct *vma)