summaryrefslogtreecommitdiff
path: root/fs/exfat/inode.c
diff options
context:
space:
mode:
authorJan Cincera <hcincera@gmail.com>2023-10-30 14:53:18 +0300
committerNamjae Jeon <linkinjeon@kernel.org>2023-10-31 04:00:51 +0300
commit0ab8ba71868594acfc717b8c7d1738b9118118ec (patch)
tree7a079e6a5180dcd8464ea2f3527f85e79ce46055 /fs/exfat/inode.c
parentcd063c8b9e1e95560e90bac7816234d8b2ee2897 (diff)
downloadlinux-0ab8ba71868594acfc717b8c7d1738b9118118ec.tar.xz
exfat: add ioctls for accessing attributes
Add GET and SET attributes ioctls to enable attribute modification. We already do this in FAT and a few userspace utils made for it would benefit from this also working on exFAT, namely fatattr. Signed-off-by: Jan Cincera <hcincera@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs/exfat/inode.c')
-rw-r--r--fs/exfat/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c
index a2185e6f0548..875234179d1f 100644
--- a/fs/exfat/inode.c
+++ b/fs/exfat/inode.c
@@ -400,9 +400,9 @@ static int exfat_write_end(struct file *file, struct address_space *mapping,
if (err < len)
exfat_write_failed(mapping, pos+len);
- if (!(err < 0) && !(ei->attr & ATTR_ARCHIVE)) {
+ if (!(err < 0) && !(ei->attr & EXFAT_ATTR_ARCHIVE)) {
inode_set_mtime_to_ts(inode, inode_set_ctime_current(inode));
- ei->attr |= ATTR_ARCHIVE;
+ ei->attr |= EXFAT_ATTR_ARCHIVE;
mark_inode_dirty(inode);
}
@@ -550,7 +550,7 @@ static int exfat_fill_inode(struct inode *inode, struct exfat_dir_entry *info)
inode_inc_iversion(inode);
inode->i_generation = get_random_u32();
- if (info->attr & ATTR_SUBDIR) { /* directory */
+ if (info->attr & EXFAT_ATTR_SUBDIR) { /* directory */
inode->i_generation &= ~1;
inode->i_mode = exfat_make_mode(sbi, info->attr, 0777);
inode->i_op = &exfat_dir_inode_operations;