X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdfilter%2Ffilter_io_26.c;h=ce656fc1725872478c41dbb24cb8a5d010a1af67;hp=621ee0561f3128960c9d4dfe909e2ccd6496a0e2;hb=90dfed8469d46f4b79ebdff8121eb109b5db6746;hpb=cfa207a65e9dc08a006460d48c5b583e45428ab1;ds=sidebyside diff --git a/lustre/obdfilter/filter_io_26.c b/lustre/obdfilter/filter_io_26.c index 621ee05..ce656fc 100644 --- a/lustre/obdfilter/filter_io_26.c +++ b/lustre/obdfilter/filter_io_26.c @@ -716,9 +716,11 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa, /* filter_direct_io drops i_mutex */ rc = filter_direct_io(OBD_BRW_WRITE, res->dentry, iobuf, exp, &iattr, oti, &wait_handle); - - obdo_from_inode(oa, inode, NULL, rc == 0 ? FILTER_VALID_FLAGS : 0 | - OBD_MD_FLUID |OBD_MD_FLGID); + if (rc == 0) + obdo_from_inode(oa, inode, + FILTER_VALID_FLAGS |OBD_MD_FLUID |OBD_MD_FLGID); + else + obdo_from_inode(oa, inode, OBD_MD_FLUID | OBD_MD_FLGID); lquota_getflag(filter_quota_interface_ref, obd, oa);