Lines Matching refs:old_ma
585 const struct fileattr *old_ma, in fileattr_set_prepare() argument
594 if ((fa->flags ^ old_ma->flags) & (FS_APPEND_FL | FS_IMMUTABLE_FL) && in fileattr_set_prepare()
598 err = fscrypt_prepare_setflags(inode, old_ma->flags, fa->flags); in fileattr_set_prepare()
608 if (old_ma->fsx_projid != fa->fsx_projid) in fileattr_set_prepare()
610 if ((old_ma->fsx_xflags ^ fa->fsx_xflags) & in fileattr_set_prepare()
618 if (old_ma->fsx_projid != fa->fsx_projid && in fileattr_set_prepare()
672 struct fileattr old_ma = {}; in vfs_fileattr_set() local
682 err = vfs_fileattr_get(dentry, &old_ma); in vfs_fileattr_set()
686 fa->fsx_xflags |= old_ma.fsx_xflags & ~FS_XFLAG_COMMON; in vfs_fileattr_set()
687 fa->fsx_extsize = old_ma.fsx_extsize; in vfs_fileattr_set()
688 fa->fsx_nextents = old_ma.fsx_nextents; in vfs_fileattr_set()
689 fa->fsx_projid = old_ma.fsx_projid; in vfs_fileattr_set()
690 fa->fsx_cowextsize = old_ma.fsx_cowextsize; in vfs_fileattr_set()
692 fa->flags |= old_ma.flags & ~FS_COMMON_FL; in vfs_fileattr_set()
694 err = fileattr_set_prepare(inode, &old_ma, fa); in vfs_fileattr_set()