staging: exfat: Clean up return codes - FFS_DIRBUSY
authorValdis Kletnieks <valdis.kletnieks@vt.edu>
Thu, 24 Oct 2019 15:53:14 +0000 (11:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Oct 2019 02:49:35 +0000 (22:49 -0400)
Convert FFS_DIRBUSY to -EBUSY

Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Link: https://lore.kernel.org/r/20191024155327.1095907-4-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat.h
drivers/staging/exfat/exfat_super.c

index 26120dfcaba5f21cd177a0938e31452b93c8b31a..f3736b33ca562798a344dd09c726a429eb91d334 100644 (file)
@@ -221,7 +221,6 @@ static inline u16 get_row_index(u16 i)
 #define FFS_NOTOPENED           12
 #define FFS_MAXOPENED           13
 #define FFS_EOF                 15
-#define FFS_DIRBUSY             16
 #define FFS_MEMORYERR           17
 #define FFS_NAMETOOLONG                18
 #define FFS_ERROR               19
index 7b1ed81efaddada183614e68bafb75b717ae538f..638de11eb6257916618d9e37885d14ab7f7e112c 100644 (file)
@@ -2703,7 +2703,7 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
                        err = -ENOTEMPTY;
                else if (err == -ENOENT)
                        err = -ENOENT;
-               else if (err == FFS_DIRBUSY)
+               else if (err == -EBUSY)
                        err = -EBUSY;
                else
                        err = -EIO;