fs: pass the request_mask to generic_fillattr
[linux-block.git] / fs / orangefs / inode.c
index 9014bbcc80317e097091201c5fc8f0d822689b8d..a52c30e80f45b459a0f16f9c6c2cd34a1e7ddb50 100644 (file)
@@ -871,7 +871,7 @@ int orangefs_getattr(struct mnt_idmap *idmap, const struct path *path,
        ret = orangefs_inode_getattr(inode,
            request_mask & STATX_SIZE ? ORANGEFS_GETATTR_SIZE : 0);
        if (ret == 0) {
-               generic_fillattr(&nop_mnt_idmap, inode, stat);
+               generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
 
                /* override block size reported to stat */
                if (!(request_mask & STATX_SIZE))