exfat: add exfat_get_dentry_set_by_ei() helper
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Fri, 13 Sep 2024 05:13:54 +0000 (13:13 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 25 Nov 2024 08:08:23 +0000 (17:08 +0900)
commitac844e91364a03c35838fd488437605fbe56f8c3
treee8709610b90f49f006ec847ddb1c36ff17458c88
parent06a2b0b3b490a6103376652c01c3ac6e8e22e654
exfat: add exfat_get_dentry_set_by_ei() helper

This helper gets the directory entry set of the file for the exfat
inode which has been created.

It's used to remove all the instances of the pattern it replaces
making the code cleaner, it's also a preparation for changing ->dir
to record the cluster where the directory entry set is located and
changing ->entry to record the index of the directory entry within
the cluster.

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Daniel Palmer <daniel.palmer@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/exfat_fs.h
fs/exfat/inode.c
fs/exfat/namei.c