b=13930
i=johann,adilger
ll_inode_fill_obdo() expects OBD_BRW_WRITE or OBD_BRW_READ as rw argument
rather than READ/WRITE.
ptlrpcd set if request is changed and can be safety changed to use
rq_set directly.
+Severity : normal
+Frequency : when using O_DIRECT and quotas
+Bugzilla : 13930
+Description: Incorrect file ownership on O_DIRECT output files
+Details : block usage reported by 'lfs quota' does not take into account
+ files that have been written with O_DIRECT.
+
--------------------------------------------------------------------------------
2007-10-26 Cluster File Systems, Inc. <info@clusterfs.com>
if (set == NULL)
RETURN(-ENOMEM);
- ll_inode_fill_obdo(inode, rw, &oa);
+ ll_inode_fill_obdo(inode, rw == WRITE ? OBD_BRW_WRITE : OBD_BRW_READ, &oa);
oinfo.oi_oa = &oa;
oinfo.oi_md = lsm;