mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
Description for this pull request:
- Fix xfstests generic/013 test failure with dirsync mount option. - Initialize the reserved fields of deleted file and stream extension dentries to zero. -----BEGIN PGP SIGNATURE----- iQJKBAABCgA0FiEE6NzKS6Uv/XAAGHgyZwv7A1FEIQgFAmY7WcoWHGxpbmtpbmpl b25Aa2VybmVsLm9yZwAKCRBnC/sDUUQhCMxTD/9+qFI6cEfe06Xt6RswN/RDMWrZ ZDzUjT7VATLSyjoiaeyJeCaK9/PCrJuX9+vNybq6W0TqfHzIYDmFn7Wg6HjQrZAJ 0XhiaqVwlQ2/UY4yiv7glJRKFsdgJdo3XhFfTWzV5Eaaj65QFHPjlQMo3tOrZzp9 HsO4+DwIFah2uvehKF8numJBXSZ7uoOELHnlL05A3xSmLAxY+HeueqbkQubv1r11 mIIfvmcdxnXlzdpgs1c+a0KXVg/4/0F+SZKYP+JL5x1N2xpc4y0cWsQgrfXY+7Id fPx6CoRYkchfUFGf/LlX/LKchMO/EuK3q3Q17+zoKfgJgdPbp8TkDpfur9iUOxgy 16wyq/iIPKWEFsMYLtqYN/dlNJ+fmVUVDF457VLNYYEFdDQbp8/VosGn4ct0CBQe E1uzwJlv/iUlBNFX679dNxDewAiBtIat2wyAChCauLK6a1bzHCIDpGUlS88ggBAd OLFvQgzRKILqd8fibb2VV46V/CY3R8SmVCzDBixPFmCJtNZas9crd3UXp1xNvPGA LHDnASkpUHSMQoQN0yfMGfvRosQD7wlJYw1mhMlDq35Z2IJg2HKKSESf2axOc5Z0 25AxNZ8xfgjBNiFfDQI0mClliXnz9GTRGt4LqBVS+YHjdbPYqCHNsvJDbR0r1ZM7 OzYIaxTVoTKtYsurgw== =zS+L -----END PGP SIGNATURE----- Merge tag 'exfat-for-6.9-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat Pull exfat fixes from Namjae Jeon: - Fix xfstests generic/013 test failure with dirsync mount option - Initialize the reserved fields of deleted file and stream extension dentries to zero * tag 'exfat-for-6.9-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat: exfat: zero the reserved fields of file and stream extension dentries exfat: fix timing of synchronizing bitmap and inode
This commit is contained in:
commit
fe35bf27a1
@ -420,6 +420,7 @@ static void exfat_set_entry_type(struct exfat_dentry *ep, unsigned int type)
|
||||
static void exfat_init_stream_entry(struct exfat_dentry *ep,
|
||||
unsigned int start_clu, unsigned long long size)
|
||||
{
|
||||
memset(ep, 0, sizeof(*ep));
|
||||
exfat_set_entry_type(ep, TYPE_STREAM);
|
||||
if (size == 0)
|
||||
ep->dentry.stream.flags = ALLOC_FAT_CHAIN;
|
||||
@ -457,6 +458,7 @@ void exfat_init_dir_entry(struct exfat_entry_set_cache *es,
|
||||
struct exfat_dentry *ep;
|
||||
|
||||
ep = exfat_get_dentry_cached(es, ES_IDX_FILE);
|
||||
memset(ep, 0, sizeof(*ep));
|
||||
exfat_set_entry_type(ep, type);
|
||||
exfat_set_entry_time(sbi, ts,
|
||||
&ep->dentry.file.create_tz,
|
||||
|
@ -51,7 +51,7 @@ static int exfat_cont_expand(struct inode *inode, loff_t size)
|
||||
clu.flags = ei->flags;
|
||||
|
||||
ret = exfat_alloc_cluster(inode, new_num_clusters - num_clusters,
|
||||
&clu, IS_DIRSYNC(inode));
|
||||
&clu, inode_needs_sync(inode));
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@ -77,12 +77,11 @@ out:
|
||||
ei->i_size_aligned = round_up(size, sb->s_blocksize);
|
||||
ei->i_size_ondisk = ei->i_size_aligned;
|
||||
inode->i_blocks = round_up(size, sbi->cluster_size) >> 9;
|
||||
|
||||
if (IS_DIRSYNC(inode))
|
||||
return write_inode_now(inode, 1);
|
||||
|
||||
mark_inode_dirty(inode);
|
||||
|
||||
if (IS_SYNC(inode))
|
||||
return write_inode_now(inode, 1);
|
||||
|
||||
return 0;
|
||||
|
||||
free_clu:
|
||||
|
Loading…
Reference in New Issue
Block a user