Patch "exfat: move setting VOL_DIRTY over exfat_remove_entries()" has been added to the 5.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    exfat: move setting VOL_DIRTY over exfat_remove_entries()

to the 5.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     exfat-move-setting-vol_dirty-over-exfat_remove_entri.patch
and it can be found in the queue-5.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 21ef00112c6abaa31d24e572b97f049f0c50e356
Author: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>
Date:   Wed Jun 17 12:17:18 2020 +0900

    exfat: move setting VOL_DIRTY over exfat_remove_entries()
    
    [ Upstream commit 3bcfb701099acf96b0e883bf5544f96af473aa1d ]
    
    Move setting VOL_DIRTY over exfat_remove_entries() to avoid unneeded
    leaving VOL_DIRTY on -ENOTEMPTY.
    
    Fixes: 5f2aa075070c ("exfat: add inode operations")
    Cc: stable@xxxxxxxxxxxxxxx # v5.7
    Reported-by: Tetsuhiro Kohada <kohada.t2@xxxxxxxxx>
    Reviewed-by: Sungjong Seo <sj1557.seo@xxxxxxxxxxx>
    Signed-off-by: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c
index 3bf1dbadab691..2c9c783177213 100644
--- a/fs/exfat/namei.c
+++ b/fs/exfat/namei.c
@@ -984,7 +984,6 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
 		goto unlock;
 	}
 
-	exfat_set_vol_flags(sb, VOL_DIRTY);
 	exfat_chain_set(&clu_to_free, ei->start_clu,
 		EXFAT_B_TO_CLU_ROUND_UP(i_size_read(inode), sbi), ei->flags);
 
@@ -1012,6 +1011,7 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
 	num_entries++;
 	brelse(bh);
 
+	exfat_set_vol_flags(sb, VOL_DIRTY);
 	err = exfat_remove_entries(dir, &cdir, entry, 0, num_entries);
 	if (err) {
 		exfat_msg(sb, KERN_ERR,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux